View Single Post
Kushfield
Member
Join Date: Jan 2017
Location: Estonia
Old 10-20-2018 , 08:54   Re: Rank calculation / sql
Reply With Quote #4

ORDER BY (wins / cups * players) DESC, wins DESC, cups DESC

First orders all players by (wins / cups * players), then orders groups of players with the same score according to wins, finally orders groups of players still with the same score according to cups.
Kushfield is offline