sorting activity in the user profile page