Open NightFlyer opened 5 years ago
This appears to be because of the LC_COLLATE=C
in the default TODOTXT_SORT_COMMAND
.
You can try setting this in your todo.cfg to remove it. Seems to ignore non-alphanumeric characters and allow the priority sorting.
TODOTXT_SORT_COMMAND="sort -f -k2"
Do you want to request a feature or report a bug? bug
What is the current behavior? If you have a task that starts with an ASCII character before '(' (such as # or double quote), that task will sort before any of the priority tasks. So, what you get are:
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Use a todo.txt such as the following:
then do
todo.sh ls
will show:What is the expected behavior? The expected behavior is that all unprioritized tasks will sort after prioritized tasks.
Which versions todo.sh are you using?
Which Operating System are you using? MacOS 10.13.6
Which version of bash are you using?