예제 #1
0
        private void DeckOrder()
        {
            var tempDeckList = DeckList.AsEnumerable().OrderByDescending(deck => deck.CampCode)
                               .ThenByDescending(deck => deck.TypeCode)
                               .ThenByDescending(deck => deck.Cost)
                               .ThenBy(deck => deck.Name)
                               .ToList();

            DeckList.Clear();
            tempDeckList.ForEach(DeckList.Add);
        }