scipy.signal.cheb2ap
scipy.signal.ellipap
Sort roots based on magnitude.
p : array_like
The roots to sort, as a 1-D array.
p_sorted : ndarray
Sorted roots.
indx : ndarray
Array of indices needed to sort the input p.