Custom sort algorithm


Author
Message
Chan
Chan
Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)
Group: Forum Members
Posts: 533, Visits: 2K
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
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search