A BIG-IP telemetry component receives an ordered list of signed integer values. Rearrange the values so that every even index contains a positive value and every odd index contains a negative value, while preserving the original relative order within the positive values and within the negative values.
You may return a new list. The input contains an equal number of positive and negative values, so every value must be placed in the required pattern.
Implement stable_alternate_signs(nums), where nums is a list of nonzero integers. Return a list containing the same values in stable alternating order. For every valid index i, result[i] > 0 when i is even, and result[i] < 0 when i is odd.
def stable_alternate_signs(nums):