Пример #1
0
        internal void SortByTeamNumber()
        {
            List <TeamResult> ordered = TeamResults.OrderBy(o => o.TeamNumber).ToList();

            TeamResults.Clear();
            foreach (TeamResult item in ordered)
            {
                TeamResults.Add(item);
            }
        }
Пример #2
0
        //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);
            }
        }