public static Player[] SortPlayers(Player[] players, PlayerComparer.SortBy sortBy, bool reverse) { var comparer = new PlayerComparer(sortBy, reverse); Array.Sort(players, comparer); return(players); }
public static Player[] SortPlayersDeaths(Player[] players, bool reverse) { var comparer = new PlayerComparer(PlayerComparer.SortBy.Deaths, reverse); Array.Sort(players, comparer); return(players); }