Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Custom sorting algorithm
Message
From
04/05/2008 15:02:22
 
 
To
04/05/2008 02:34:32
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 3.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01315003
Message ID:
01315016
Views:
18
Personally, if you could. Change the structure to create a column that has a value that can just be used to sort on. 10,20,30,40,etc. Makes it much easier.

>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

(On an infant's shirt): Already smarter than Bush
Previous
Reply
Map
View

Click here to load this message in the networking platform