Skip to content

Commit 540b697

Browse files
committed
Normative: Change order of CollationsOfLocale to alphabetical.
1 parent 44a65a3 commit 540b697

File tree

1 file changed

+3
-3
lines changed
  • graal-js/src/com.oracle.truffle.js/src/com/oracle/truffle/js/runtime/util

1 file changed

+3
-3
lines changed

graal-js/src/com.oracle.truffle.js/src/com/oracle/truffle/js/runtime/util/IntlUtil.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1003,14 +1003,14 @@ public static String[] availableCollations(ULocale locale, boolean commonOnly) {
10031003
collations = trimmed;
10041004
}
10051005

1006+
Arrays.sort(collations);
1007+
10061008
return collations;
10071009
}
10081010

10091011
@TruffleBoundary
10101012
public static String[] availableCollations() {
1011-
String[] collations = availableCollations(null, false);
1012-
Arrays.sort(collations);
1013-
return collations;
1013+
return availableCollations(null, false);
10141014
}
10151015

10161016
@TruffleBoundary

0 commit comments

Comments
 (0)