Sort users and details