BUG: fix multi-column sort that includes Categoricals (GH7848)

CLN: refactor _lexsort_indexer to use Categoricals

closes #7848 
Explanation would be nice: what is n, what is the array.