sort_by currently only supports ascending sorts. The following allows descending sorts:
For README.md:
### Usage of `sort_by`
The `sort_by` command also takes a [function argument](#available-function-arguments).
It calls the function on each *line of input*, and uses the results to sort
the *original input* in __ascending__ order. The `--descending` / `-d` option
will sort the results in __descending__ order. (There is a `--ascending` / `-a`
option for completeness.)
Great idea. Note that I'm not using this project myself anymore, so I'm not really actively maintaining it. I'd be happy to merge a PR with proper tests though.
sort_by
currently only supports ascending sorts. The following allows descending sorts:For README.md:
_For ft/ft/commands.sortby.py: