From 3a77a6fedef52d4633cdd252ce09ac3fc80e7217 Mon Sep 17 00:00:00 2001 From: Jos de Jong Date: Thu, 2 Feb 2023 12:08:07 +0100 Subject: [PATCH] Fix #2892: an error in the examples of the embedded help of function `sort` --- HISTORY.md | 1 + src/expression/embeddedDocs/function/matrix/sort.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/HISTORY.md b/HISTORY.md index dc0d97733..7666c60c2 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -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 diff --git a/src/expression/embeddedDocs/function/matrix/sort.js b/src/expression/embeddedDocs/function/matrix/sort.js index 84b5f4fb8..85447f726 100644 --- a/src/expression/embeddedDocs/function/matrix/sort.js +++ b/src/expression/embeddedDocs/function/matrix/sort.js @@ -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")'