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.