Fixed sorting with Factor->char->numeric.