From 68fc6f5bc090ca787ede21c55ec6c7f83d86ce34 Mon Sep 17 00:00:00 2001 From: Johannes Wolf <519002+johannes-wolf@users.noreply.github.com> Date: Wed, 13 Sep 2023 19:49:41 +0200 Subject: [PATCH] array: Mention sort stability in the docs (#2129) --- crates/typst/src/eval/array.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/typst/src/eval/array.rs b/crates/typst/src/eval/array.rs index 90f59b2fc..8e9e5f27f 100644 --- a/crates/typst/src/eval/array.rs +++ b/crates/typst/src/eval/array.rs @@ -702,7 +702,7 @@ impl Array { } /// Return a sorted version of this array, optionally by a given key - /// function. + /// function. The sorting algorithm used is stable. /// /// Returns an error if two values could not be compared or if the key /// function (if given) yields an error.