summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Wolf <519002+johannes-wolf@users.noreply.github.com>2023-09-13 19:49:41 +0200
committerGitHub <noreply@github.com>2023-09-13 19:49:41 +0200
commit68fc6f5bc090ca787ede21c55ec6c7f83d86ce34 (patch)
treea70e4422a123fefbafc9b5121854ccc670a6bc13
parent360cc9b9570f263d52530b98d0c93523e7bdb100 (diff)
array: Mention sort stability in the docs (#2129)
-rw-r--r--crates/typst/src/eval/array.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/typst/src/eval/array.rs b/crates/typst/src/eval/array.rs
index 90f59b2f..8e9e5f27 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.