sorting bets from the last to the first