Sort user data for ranking