Both .sort() and order() functions are DEPRECATED
.sort_values() function is the replacement and here's the example on how to use it.
Example:
import numpy as np
import pandas as pd
arr = np.array([1,3,4,2])
series = pd.Series(arr)
Ascending Order
Equivalent to .order() function from old versions.
ascending = series.sort_values()
Descending Order
Equivalent to .order(ascending=False)
descending = series.sort_values(ascending=False)
In Place
Equivalent to .sort() from old versions.
series.sort_values(inplace=True)
For more info, check official documentation here