mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 19:04:58 +00:00
LibJS+LibUnicode: Designate a sort order for Intl.PluralRules categories
This is a normative change in the ECMA-402 spec. See: https://github.com/tc39/ecma402/commit/62fe5db
This commit is contained in:
committed by
Andreas Kling
parent
e5ec8441c9
commit
5e534f4d83
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2021-2024, Tim Flynn <trflynn89@serenityos.org>
|
||||
* Copyright (c) 2021-2024, Tim Flynn <trflynn89@ladybird.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
@@ -733,6 +733,7 @@ public:
|
||||
result.append(plural_category_from_string({ category, static_cast<size_t>(length) }));
|
||||
}
|
||||
|
||||
quick_sort(result);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user