Players sorting was refactored.