private IEnumerable <PlayerHeadToHeadSummaryRow> SortByKillDeathRatio() { return((_sortDirection == SortDirection.Ascending) ? HeadToHeadSummaries.OrderBy(h2h => h2h.PlayerStats.KillDeathRatio).AsEnumerable() : HeadToHeadSummaries.OrderByDescending(h2h => h2h.PlayerStats.KillDeathRatio).AsEnumerable()); }
private IEnumerable <PlayerHeadToHeadSummaryRow> SortByEnemyHeadshotRatio() { return((_sortDirection == SortDirection.Ascending) ? HeadToHeadSummaries.OrderBy(h2h => h2h.EnemyStats.HeadshotRatio).AsEnumerable() : HeadToHeadSummaries.OrderByDescending(h2h => h2h.EnemyStats.HeadshotRatio).AsEnumerable()); }
private IEnumerable <PlayerHeadToHeadSummaryRow> SortByOutfitAlias() { return((_sortDirection == SortDirection.Ascending) ? HeadToHeadSummaries.OrderBy(h2h => h2h.EnemyDetails.OutfitAlias?.ToUpper()).AsEnumerable() : HeadToHeadSummaries.OrderByDescending(h2h => h2h.EnemyDetails.OutfitAlias?.ToUpper()).AsEnumerable()); }