From d64b1f069a784ff8d220114da7dac4756cb700ae Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sun, 27 Nov 2022 02:28:10 +0300 Subject: [PATCH] minor bugfix... Signed-off-by: Alex A. Naanou --- README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index acf6c73..6bc9b3b 100644 --- a/README.md +++ b/README.md @@ -636,14 +636,17 @@ Compare to arrays ignoring element order and count. Sort array as a different array. ```bnf .sortAs() -.sortAs(, 'tail') .sortAs(, 'head') -> + +.sortAs(, 'tail') + -> ``` Elements not present in `` retain their relative order and are -placed after the sorted elements if `'tail'` is passed as second argument -(default) and before them if `'tail'` is passed. +placed after the sorted elements if `'head'` (i.e. _"sorted at head of +array"_) is passed as second argument (default) and before them if +`'tail'` (_"sorted at tail"_) is passed. Example: ```javascript