array: Mention sort stability in the docs (#2129)

This commit is contained in:
Johannes Wolf 2023-09-13 19:49:41 +02:00 committed by GitHub
parent 360cc9b957
commit 68fc6f5bc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.