Click here to Skip to main content
15,886,078 members
Articles / Programming Languages / C#

Custom Sort a List of Objects by Any Order

Rate me:
Please Sign up or sign in to vote.
4.93/5 (16 votes)
14 Mar 2012CPOL4 min read 78.7K   90   25  
An IList Extension Method that sorts the list in any order or in a combination of orders.

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

No alternatives have been posted.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Team Leader XYZ Studios Ltd
China China
I am an independent IT contractor who is passionate about life and Microsoft technology stack. I have been programming since 2001. Besides coding, I also enjoy diving, swimming, rock climbing and travelling. I swim 2 miles a day to keep my morale and energy level consistently high.

Comments and Discussions