How to sort a dataframe base on their exits index code example Example: how to sort index pd.sort_index()