Sorting Lists Using IComparer

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I have implemened a class which is derived form IComparer to sort using
IComparer. The sorting is functioning well when the sorting objects are
different.
But. when the objects are equal the entire list get sorted.
Can anyone has a solution for this?

Thanks & Regards,
Leshan
 
<=?Utf-8?B?U29ydGluZyBXaXRoIElDb21wYXJlcg==?= <Sorting With
I have implemened a class which is derived form IComparer to sort using
IComparer. The sorting is functioning well when the sorting objects are
different.
But. when the objects are equal the entire list get sorted.
Can anyone has a solution for this?

I don't quite understand. Could you post a short but complete program
which demonstrates the problem?

See http://www.pobox.com/~skeet/csharp/complete.html for details of
what I mean by that.
 
Back
Top