Sort the badges on the user profile page