added sorting for leaderboard