astropy.utils
astropy.utils.masked
Perform an indirect stable sort using a sequence of keys.
Like numpy.lexsort but for possibly masked keys. Masked values are sorted towards the end for each key.
numpy.lexsort
keys