internal void SortByTeamNumber() { List <TeamResult> ordered = TeamResults.OrderBy(o => o.TeamNumber).ToList(); TeamResults.Clear(); foreach (TeamResult item in ordered) { TeamResults.Add(item); } }
//FIXME - still sorts by avg. pow. cells internal void SortByBroken() { List <TeamResult> ordered = TeamResults.OrderBy(o => o.TotalBroken).ToList(); TeamResults.Clear(); foreach (TeamResult item in ordered) { TeamResults.Add(item); } }