pd.sort_index()

Read more of this post