I’m trying to sort a dataview table by a custom order.
I have a sequence of statuses for actions (at the moment tags, but could change later to key:: value pairs): #as/now → #as/next → #as/later → #as/someday and would like to sort my actions table based on these statuses - however not alphabetically, but by the status sequence above.
Of course I could prefix each status with a number, but that isn’t ideal.
At the moment I’m using 4x tables, one per status, but that too isn’t ideal or the neatest solution either due to the repeating heading of the table.
For reference here is my query:
TABLE WITHOUT ID action-status as Status, file.link as Action
FROM #as/now
WHERE project = this.file.link
I’m hoping that there is a way to map my statuses to an order with dataviewjs.