sorting of leaderboard by dumping sum of orders into db