dv.taskList Section Sorting #1535
AndreasBackx
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
Just to clarify - |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I wanted to have a list of uncompleted tasks and I was happy to see that
dv.taskList
nicely includes the page title which adds some nice context. I am sorting them based on creation date but realise thatdv.taskList
ignores this because of howDataArray.groupBy
is implemented. So I thought to possibly makeDataArray.groupBy
respect the order of the input array. Though then one can debate that there can be multiple ways of ordering still.Regardless I was thinking of the following implementation changes to
dv.taskList
(thoughDataArray.groupBy
could also be changed perhaps?):Make
dv.taskList
accept a sorted map where the keys are the section titles and the values are the section items.dv.taskList
would then not need to do any grouping itself and just skip to rendering. This seems like the most convenient solution, it would allow for using.map
on a list of tasks and perhaps an additional step to collect it into an object.Looking to hear what you all think. 🙂
Beta Was this translation helpful? Give feedback.
All reactions