Added a complicated order by for the users