From 16ab284e13c340defe7317d8c600fc5d28c76fb0 Mon Sep 17 00:00:00 2001 From: Sanskar Gupta Date: Tue, 10 Dec 2024 00:12:52 +0530 Subject: [PATCH] docs: correct grammar and improve clarity (#37137) fix typo --- .../web/javascript/reference/global_objects/array/sort/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/en-us/web/javascript/reference/global_objects/array/sort/index.md b/files/en-us/web/javascript/reference/global_objects/array/sort/index.md index 77e1f34cab0948c..5de2ab89c0ccef1 100644 --- a/files/en-us/web/javascript/reference/global_objects/array/sort/index.md +++ b/files/en-us/web/javascript/reference/global_objects/array/sort/index.md @@ -7,7 +7,7 @@ browser-compat: javascript.builtins.Array.sort {{JSRef}} -The **`sort()`** method of {{jsxref("Array")}} instances sorts the elements of an array _[in place](https://en.wikipedia.org/wiki/In-place_algorithm)_ and returns the reference to the same array, now sorted. The default sort order is ascending, built upon converting the elements into strings, then comparing their sequences of UTF-16 code units values. +The **`sort()`** method of {{jsxref("Array")}} instances sorts the elements of an array _[in place](https://en.wikipedia.org/wiki/In-place_algorithm)_ and returns the reference to the same array, now sorted. The default sort order is ascending, built upon converting the elements into strings, then comparing their sequences of UTF-16 code unit values. The time and space complexity of the sort cannot be guaranteed as it depends on the implementation.