Revert "Revert "Players sorting was refactored.""

This reverts commit 2efa70a42f14b6bc2759d8d7faa3eb75e2ff6eea.