Priorities First TASK FROM "work/aetion" WHERE contains(tags, "#todo/11") and !completed GROUP BY file.link SORT file.ctime DESC Second TASK FROM "work/aetion" WHERE contains(tags, "#todo/10") and !completed GROUP BY file.link SORT file.ctime DESC