[Mono-bugs] [Bug 442257] System.Array.Sort produces wrong results

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Nov 6 08:00:55 EST 2008


https://bugzilla.novell.com/show_bug.cgi?id=442257

User fredrik.kling at swissqual.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=442257#c1





--- Comment #1 from Fredrik Kling <fredrik.kling at swissqual.com>  2008-11-06 06:00:54 MST ---
Correction:
Returning '0' from the comparer means the elements are equal...
Swapping leafs in the search probably has nothing to do with it...
However, it still produces different results..

Comment:
The sorting is, according to MSDN to be regarded as unstable, this would imply
that the mono implementation is doing the right thing with respect to 'zero' as
the return. And that it is a logical error to expect the MS result in my
example.. 

However, should the output between the frame-works differ? Even though, in this
case, it makes sense...


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list