[Mono-bugs] [Bug 63981][Min] New - Sorting of strings difference in .NET and Mono

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 25 Aug 2004 08:44:54 -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 maurits.rijk@philips.com.

http://bugzilla.ximian.com/show_bug.cgi?id=63981

--- shadow/63981	2004-08-25 08:44:54.000000000 -0400
+++ shadow/63981.tmp.27312	2004-08-25 08:44:54.000000000 -0400
@@ -0,0 +1,59 @@
+Bug#: 63981
+Product: Mono: Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Minor
+Component: System
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: maurits.rijk@philips.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Sorting of strings difference in .NET and Mono
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+After creating an ArrayList with the strings "foo.obj" and "foobar.obj" and
+sorting them, .NET and Mono show a different sort order:
+
+.NET: 
+
+foo.obj
+foobar.obj
+
+Mono:
+
+foobar.obj
+foo.obj
+
+This is caused by the different handling of the dot.
+
+Steps to reproduce the problem:
+1. Create ArrayList
+2. Add 2 strings (foobar.obj and foo.obj)
+3. Sort and print
+
+Actual Results:
+
+Different sort order.
+
+Expected Results:
+
+Not clear if this is specified.
+
+How often does this happen? 
+
+always
+
+Additional Information:
+
+1) The code is trivial, but I will attach it anyhow
+2) Not sure if the sorting order in this case is specified. But even if it
+isn't specified, I would suggest to follow the .NET implemenation.