Lowest price ever! Learn Generative AI for 48% less!
Get my discount0
Hi,
In order to sort a specific list, you can use LINQ to object. For example if you have a list of cards like this:
List<Card> cards = new List<Cards>() {
new Card() { Name="Ace"},
new Card() { Name="1"}
}
You can sort it by:
var ordered = cards.OrderBy(x=>x.Name);