feat(#2079): sort_by may return predefined sort (#2123)

* feat(#2079): prefactor

* feat(#2079): sort_by may return a predefined string
This commit is contained in:
Alexander Courtis
2023-04-15 15:53:40 +10:00
committed by GitHub
parent 56cdb5827d
commit 6ad5c26f4d
4 changed files with 33 additions and 34 deletions

View File

@@ -491,7 +491,8 @@ Can be one of `name`, `case_sensitive`, `modification_time`, `extension` or a
function.
Type: `string` | `function(nodes)`, Default: `"name"`
Function is passed a table of nodes to be sorted, each node containing:
Function may perform a sort or return a string with one of the above
methods. It is passed a table of nodes to be sorted, each node containing:
- `absolute_path`: `string`
- `executable`: `boolean`
- `extension`: `string`