mirror of
https://github.com/josdejong/mathjs.git
synced 2026-01-25 15:07:57 +00:00
Fix #2892: an error in the examples of the embedded help of function sort
This commit is contained in:
parent
77934348aa
commit
3a77a6fede
@ -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
|
||||
|
||||
|
||||
@ -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")'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user