pandas.Series.order

Series.order(na_last=True, ascending=True, kind='mergesort')

Sorts Series object, by value, maintaining index-value link

Parameters:

na_last : boolean (optional, default=True)

Put NaN’s at beginning or end

ascending : boolean, default True

Sort ascending. Passing False sorts descending

kind : {‘mergesort’, ‘quicksort’, ‘heapsort’}, default ‘mergesort’

Choice of sorting algorithm. See np.sort for more information. ‘mergesort’ is the only stable algorithm

Returns:

y : Series