>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
Don't see how you can use IComparable for this since CompareTo() has to provide a decision based solely on the value of two items and you're structure precludes that. Maybe iterate over the items and insert each into an ArrayList or similar?
Regards,
Viv