MultiIndex.
is_lexsorted
Return True if the codes are lexicographically sorted.
pandas.MultiIndex.to_flat_index
pandas.MultiIndex.sortlevel