Revert "Players sorting was refactored."

This reverts commit 8a66b45554c88b69a3df93b718419c76188aaef5.