[Mono-bugs] [Bug 63981][Min] Changed - Sorting of strings difference in .NET and Mono
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Tue, 31 Aug 2004 09:50:43 -0400 (EDT)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by dick@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=63981
--- shadow/63981 2004-08-25 08:47:14.000000000 -0400
+++ shadow/63981.tmp.27406 2004-08-31 09:50:43.000000000 -0400
@@ -1,14 +1,14 @@
Bug#: 63981
Product: Mono: Class Libraries
Version: unspecified
-OS:
+OS: unknown
OS Details:
-Status: NEW
-Resolution:
-Severity:
+Status: RESOLVED
+Resolution: NOTABUG
+Severity: Unknown
Priority: Minor
Component: System
AssignedTo: mono-bugs@ximian.com
ReportedBy: maurits.rijk@philips.com
QAContact: mono-bugs@ximian.com
TargetMilestone: ---
@@ -59,6 +59,14 @@
isn't specified, I would suggest to follow the .NET implemenation.
------- Additional Comments From maurits.rijk@philips.com 2004-08-25 08:47 -------
Created an attachment (id=9553)
Code to test difference in sort order between Mono and .NET
+
+------- Additional Comments From dick@ximian.com 2004-08-31 09:50 -------
+You need to use the Invariant culture if you want the result of
+sorting strings to be predictable.
+
+See the documentation for System.String.Compare(). You're seeing the
+default CompareOption in action, which makes punctuation count less
+than letters. It's called "word sort".