now sorts the users before displaying