Closed stayradiated closed 10 years ago
This is very similar to #254 - most of the sorting happens when tasks are drawn to the screen.
The button needs to be linked up and the sorting code needs to be refactored.
Also, the tasks rendering code is horrendous and should be simplified.
Sorting tasks manually works, which is really neat. Still bug testing though.
Current bugs:
Tomorrow I will refactor the old ‘magic sort’ code that organises tasks by due date and priority.
There’s also a bunch of incomplete styles. I’ll do those at some point.
So you can now have the option to automatically sort each list using an algorithm based on task completedness, priority, due date and name (in that order).
Next thing to do is to add back in the grouping code that seperates tasks based on priority.
Ok, so sorting standard lists is pretty good to go now.
Still a couple bugs with sorting special lists though.
You can now sort lists
I should uncomment the code and see if it still works...