I have the following class:
class Detail { public Detail() { _details = new List(); } public IList Detail
There are two ways:
Without LINQ: yourList.Sort();
yourList.Sort();
With LINQ: yourList.OrderBy(x => x).ToList()
yourList.OrderBy(x => x).ToList()
You will find more information in: http://www.dotnetperls.com/sort-string-array