Fixed invalid sort criterion for getUser method