From 6af28fc96b2eea18c0258a1011c13019d7cd9aef Mon Sep 17 00:00:00 2001 From: Axlefublr <101342105+Axlefublr@users.noreply.github.com> Date: Sun, 22 Jun 2025 12:10:04 +0800 Subject: [PATCH] fix typo --- book/sorting.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/book/sorting.md b/book/sorting.md index c605c517694..74b2910f163 100644 --- a/book/sorting.md +++ b/book/sorting.md @@ -100,7 +100,7 @@ $items | sort # => ╰───┴─────┴──────────┴───────╯ ``` -In this example, the `id` column for all items is equal. Then, the two items with price `5` are sorted before the item with price `10`. Finally, the `item` with quantity `1` is sorted before the item with quantity `8`. +In this example, the `id` column for all items is equal. Then, the two items with quantity `5` are sorted before the item with quantity `10`. Finally, the `item` with price `1` is sorted before the item with price `8`. ## Sorting structured data @@ -354,7 +354,7 @@ $compatible | sort-by -c {|a, b| $a < $b | default ($a != null) } # => ╰───┴──────╯ $incompatible | sort-by -c {|a, b| $a < $b | default ($a != null) } # => Error: nu::shell::type_mismatch -# => +# => # => × Type mismatch during operation. # => ╭─[entry #26:1:36] # => 1 │ $incompatible | sort-by -c {|a, b| $a < $b | default ($a != null) }