Search Issue Tracker
By Design
Votes
0
Found in
5.3.4f1
Issue ID
840104
Regression
No
Default string comparer for Enumerable.OrderBy is wrong in webGL
Default string comparer for Enumerable.OrderBy is wrong in webGL
(new string[] { "abc", "XY", "CDE", "ijk" }).OrderBy(s => s).ToArray()
returns [abc, CDE, ijk, XY] on .NET, Unity and Mono, but returns [CDE, XY, abc, ijk] on Unity/webGL
It seems that the default string comparer should be case-insensitive, while it's currently case sensitive in webGL player.
I've tried an iOS build and it sorts correctly, so the issues seems to be confined to the webGL player implementation and not to IL2CPP.
To reproduce:
1. Build and run attached project for WebGL platform
2. Click Manual Test button
3. Notice that Enumerable.OrderBy returns wrong value
Reproducible: 5.5.0b7, 5.4.1.p4, 5.3.6p7
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [VFX] Custom HLSL with 'int' parameter, without the 'in/out/inout' access modifier is not supported
- [Windows] Lens Flare doesn't work in the Lens Flare Showroom URP Sample Scene
- Crash on ujob_execute_job while using OverlapBoxCommand when collisions are more than maxHits
- The validity of the multiple handles can behave differently based on the load/release operations order, when multiple Addressables.LoadAssetAsync and Addressables.Release are used to load and release the same Addressable Asset
- Dynamic text is rendered in the background when it is inside the <font> tag
Add comment