From 8fe306b3243e68a6ae21a30da2098d00050ec0c7 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sun, 27 Nov 2022 02:13:23 +0300 Subject: [PATCH] docs... Signed-off-by: Alex A. Naanou --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7b1a574..acf6c73 100644 --- a/README.md +++ b/README.md @@ -636,11 +636,14 @@ Compare to arrays ignoring element order and count. Sort array as a different array. ```bnf .sortAs() +.sortAs(, 'tail') +.sortAs(, 'head') -> ``` Elements not present in `` retain their relative order and are -placed after the sorted elements. +placed after the sorted elements if `'tail'` is passed as second argument +(default) and before them if `'tail'` is passed. Example: ```javascript