There\'s no Sort() function for IList. Can someoene help me with this?
I want to sort my own IList.
Suppose this is my IList:
OrderBy definitely gets the job done, but I personally prefer the syntax of List.Sort because you can feed it a Comparison delegate instead of having to write a class that implements IComparer. We can accomplish that goal with an extension method, and if that's something you're interested in, check out SortExtensions:
http://blog.velir.com/index.php/2011/02/17/ilistt-sorting-a-better-way/