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