FIX: Correct Categorical behavior in StataReader

Ensure that category codes have the same order as the underlying Stata data.

xref #8816
This note is not fully clear to me (but I have to say, I don't use Stata). 

Maybe add some code examples?