Hello. Getting tasks from kanban board, I need headers to be sorted by line - by place in file, if I drag kanban list to begin of file it should be first in dw, but however I tried - headers always sorting by name.
Things I have tried
Task
FROM "Projects"
WHERE !completed
GROUP BY header
LIMIT 1
SORT rows.file.header.line
And if you want to sort on some like number, which line in which file do you want to use? (What’s on that line? And how would you potentially handle different files with varying line number? )
Are you able to show some examples on typical input, and what you want add output?
LIMIT shows tasks only from one header (kanban-list). When task 1 and task 2 from first list will be done, dw shows second list etc. header or section here - name of list. Order should be from left-to-right (from top to bottom in markdown view):
should_be_first
second
last
But it sorts by name:
last
second
should_be_first
SORT by line - here I tried to sort headers by position in the file.
The task you present isn’t placed within a section, as the subpath is empty.
So it’s really hard to understand what you’re trying to achieve. Do you want your query to generate sections and group by them?
How is your kanban generated? The task you present shouldn’t be a part of a pure kanban board, since it’s not within a section.
And yes, I do know you can’t interact with task in a table, and that it’s not what you’re asking for, but it was an attempt to try to understand your data structure, which failed since you seem reluctant presenting any real data related to your setup.