Allow custom sorting for list view in filters

Currently, list view in filters doesn’t allow to reorder items and it is ok. But internally they still uses sorting by position.

I would like to have custom sorting according priority and due date, and i even can specify it via API, but harcoded sort options for list view is spoiling everything.

May be you can remove such hardcoded sorting for filter (projectID < -1):

As i can understand from vikunja/pkg/models/task_collection.go at main · go-vikunja/vikunja · GitHub - removing sorting from request will lead to using sorting, stored at a filter.

Best option will be ability to specify sorting through view settings, but for begging, it will be great just to remove such hardcode :slight_smile:

Welcome :waving_hand:

Currently, you can sort manually only in the UI. I’d be open for a PR to make this configurable, but that should work for projects (not only filters) as well.