//Create New Listvarbooks=newList<String>{"The Way of Kings","Words of Radiance","Oathbringer","Rhythm of War"};//Sort Items from Listbooks.Sort();foreach(varbookinbooks){Console.WriteLine(book);}//Reverse Sortbooks.Reverse();foreach(varbookinbooks){Console.WriteLine(book);}
Find Items from List
//Create New Listvarbooks=newList<String>{"The Way of Kings","Words of Radiance","Oathbringer","Rhythm of War"};//Find Item from List using Item Nameintid=books.IndexOf("Oathbringer");Console.WriteLine(books[id]);//Find Item using Linq Quaryvarresult=books.Find(x=>x.Contains("Kings"));Console.WriteLine(result);