We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5dd19d4 commit 786fc0bCopy full SHA for 786fc0b
1 file changed
1-js/99-js-misc/90-intl/1-collate-array-sort/solution.md
@@ -5,9 +5,7 @@ let animals = ["тигр", "ёж", "енот", "ехидна", "АИСТ", "ЯК
5
6
*!*
7
let collator = new Intl.Collator();
8
-animals.sort(function(a, b) {
9
- return collator.compare(a, b);
10
-});
+animals.sort((a, b) => collator.compare(a, b));
11
*/!*
12
13
alert( animals ); // АИСТ,ёж,енот,ехидна,тигр,ЯК
0 commit comments