Fix #2892: an error in the examples of the embedded help of function sort

This commit is contained in:
Jos de Jong 2023-02-02 12:08:07 +01:00
parent 77934348aa
commit 3a77a6fede
2 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@
- Fix #2888: update type definitions of function `unit` to allow creating a
unit from a fraction or complex number.
- Fix #2892: an error in the examples of the embedded help of function `sort`.
# 2023-01-31, 11.5.1

View File

@ -8,7 +8,7 @@ export const sortDocs = {
description: 'Sort the items in a matrix. Compare can be a string "asc", "desc", "natural", or a custom sort function.',
examples: [
'sort([5, 10, 1])',
'sort(["C", "B", "A", "D"])',
'sort(["C", "B", "A", "D"], "natural")',
'sortByLength(a, b) = size(a)[1] - size(b)[1]',
'sort(["Langdon", "Tom", "Sara"], sortByLength)',
'sort(["10", "1", "2"], "natural")'