Bug 28623 - Mono sorting of the Chinese strings does not match with .Net
Summary: Mono sorting of the Chinese strings does not match with .Net
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: mscorlib (show other bugs)
Version: 3.12.0
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
Depends on:
Reported: 2015-04-01 06:45 UTC by Prashant Cholachagudda
Modified: 2016-04-16 09:44 UTC (History)
2 users (show)

See Also:
Is this bug a regression?: ---
Last known good build:


Description Prashant Cholachagudda 2015-04-01 06:45:36 UTC
Mono incorrectly sorts the Chinese strings compared to .net
The below test case pass on the .NET/Visual Studio but fails on Mono/XS

## Testcase 

	class TestOrdering
		[SetCulture ("zh-Hans")]
		public void TestShouldBeBrokenInMono ()
			const string denmarkName = "丹麦";
			const string uruguayName = "乌拉圭";
			const string croatiaName = "克罗地亚";

			var denmark = new CountryExample (denmarkName);
			var uruguay = new CountryExample (uruguayName);
			var croatia = new CountryExample (croatiaName);
			var countries = new List<CountryExample> { denmark, uruguay,

			countries = countries.OrderBy (x => x.Name).ToList ();

			Assert.AreEqual (denmarkName, countries [0].Name);
			Assert.AreEqual (croatiaName, countries [1].Name);
			Assert.AreEqual (uruguayName, countries [2].Name);


	public class CountryExample
		public string Name { get; set; }
		public CountryExample (string name)
			Name = name;

Note You need to log in before you can comment on or make changes to this bug.