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