https://medium.com/better-programming/sorting-a-python-pandas-dataframes-by-index-and-value-7306ac754014