-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sort is done alphabetically instead of in UDA value order from config #228
Comments
This seems more like a bug in TaskWarrior.
Finally, all of the sorting in VIT is structured around alphabetical sorting, so even if none of the above is true, it might be a real pain to treat UDA fields separately. |
IMHO, it rather makes sense to use the lexicographic order when sorting a UDA
It can be e.g. used with default priority field. I analyzed how it works in TaskWarrior: the entries are specified in descending order, e.g. Say we have (for a string UDA) uda.field.values = High, Medium, Low rc.report.foo.sort=field- => <empty>, High, Medium, Low For numeric, duration and date types, uda.field.values is unused, and natural order is used, so no change needed |
This seems like an awful lot of work for not a ton of benefit. I'd be open to reviewing a PR that implements the functionality described above for string UDAs, but will probably not spend the time to fix this myself. |
I second this motion for the sort feature. |
Just to be clear, this issue doesn't need votes, it needs somebody to write the code. |
When showing a report that is sorted by an UDA, VIT sorts the UDA values alphabetically, while Taskwarrior sorts using the order the UDA values are defined in the config.
To reproduce, use the following taskrc config:
Add tasks with each of the Test UDA values.
Display the Test report on VIT and Taskwarrior.
The sorting of the tasks will be, from top to bottom, based on the Test UDA values:
Taskwarrior: a,b,c,z,y,x
VIT : z,y,x,c,b,a
The text was updated successfully, but these errors were encountered: