re: http://stackoverflow.com/questions/14085517/pandas-sorting-pivot-table-or-grouping-dataframe