how to sort dataframe in a specific order code example
Example: sort function in pandas dataframe to sort specific properties
>>> result = df.sort(['A', 'B'], ascending=[1, 0])
>>> result = df.sort(['A', 'B'], ascending=[1, 0])