Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
0
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);
27th Sep 2019, 9:10 PM
Gabriele Marra
Gabriele Marra - avatar