Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Custom sorting algorithm
Message
From
04/05/2008 02:34:32
 
 
To
All
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
Custom sorting algorithm
Environment versions
Environment:
C# 3.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01315003
Message ID:
01315003
Views:
56
Hi,
I have item as below:
ItemName          BeforeItem    AfterItem
------------------------------------------
"First"
"Second"
"Third"
"B4Second"        "Second"
"BetweenSecond"   "Second"      "B4Second"
I would like to implement IComparable to sort them so that it could be as below:

First
B4Second
BetweenSecond
Second
Third

Please advice

Thank you
I am not the most powerful man in this world.
I am not the worst man in this world either.
I just as same as all of you.
I still need to learn from my mistakes...
Next
Reply
Map
View

Click here to load this message in the networking platform