Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Custom sorting algorithm
Message
De
04/05/2008 02:34:32
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Custom sorting algorithm
Versions des environnements
Environment:
C# 3.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01315003
Message ID:
01315003
Vues:
57
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...
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform