StataReader: Support sorting categoricals

I vectorized the loop in https://github.com/PKEuS/pandas/commit/c410441149f48f7e11dbbe197d8a824da1ac9f5e (I will squash the commits later)