[release/6.0] Fix calling NLS with Cultures has alternative sort names (#62155)
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Wed, 15 Dec 2021 18:41:04 +0000 (12:41 -0600)
committerGitHub <noreply@github.com>
Wed, 15 Dec 2021 18:41:04 +0000 (12:41 -0600)
commita4f5b7812a3434c778cf5e5f71d78a52ceaeb47e
tree93c4b7988e9b2894847a0db21e07e1b39e00fb90
parent9c341f4b25758c05d3182958a12b62125ff842d6
[release/6.0] Fix calling NLS with Cultures has alternative sort names (#62155)

* Fix calling NLS with Cultures has alternative sort names

* Exclude the test for the browser

* Update src/libraries/System.Private.CoreLib/src/System/Globalization/CultureData.Nls.cs

Co-authored-by: Adeel Mujahid <3840695+am11@users.noreply.github.com>
* Fix test typo

Co-authored-by: Tarek Mahmoud Sayed <tarekms@microsoft.com>
Co-authored-by: Adeel Mujahid <3840695+am11@users.noreply.github.com>
src/libraries/System.Globalization/tests/System/Globalization/TextInfoTests.cs
src/libraries/System.Private.CoreLib/src/System/Globalization/CultureData.Nls.cs