Click here to Skip to main content
15,867,568 members
Articles / Programming Languages / C#
Alternative
Tip/Trick

Sorting using C# Lists

Rate me:
Please Sign up or sign in to vote.
5.00/5 (4 votes)
4 Feb 2012CPOL 14.8K   2   2
You can also derive the user-defined node class from IComparable then add to it the CompareTo method.

You can also derive the user-defined node class from IComparable then add to it the CompareTo method.

License

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


Written By
Consultant
San Marino San Marino
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
GeneralReason for my vote of 5 agree! Pin
raananv12-Feb-12 8:58
raananv12-Feb-12 8:58 
Reason for my vote of 5
agree!
GeneralReason for my vote of 5 IComparable is the way to go. Pin
James Hurburgh6-Feb-12 17:32
James Hurburgh6-Feb-12 17:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.