Hi Codans
Wondering whether others would find it useful to have a new action (via a button or automation) to:
-
Move a row to sit above or below another row in the same table, e.g.
moveRow(a, b, c)
wherea
is the reference of the row you want to move,b
is the reference of the row you wanta
to be adjacent to, andc
is a boolean value that determines whethera
is above or belowb
. -
Re-order all the rows in a table according to a sort function, i.e. not just applying a sort, but re-ordering their “base” positions in the table as if you had dragged them up or down, e.g.
tableOrder(a, b, c)
wherea
is the name of the table you want to re-order,b
is the column you want to sort by, andc
is boolean value switching between ascending and descending order.
I often find myself wanting to be able to change the order of rows in a table via a button or automation. Using ‘Sort’ is often not an option, because once a table or view has a Sort order applied, users can no longer grab and re-order rows for themselves.
This is a really common issue when using Coda for task management - the order of task items in a list is often used as an indication of relative priority, and users generally need to be able to re-order tasks for themselves, but it’s also not uncommon for there to be workflow events that should bump an item to the top or bottom of the list, or move one item above or below another. The same need has popped up in a number of my other Coda use cases too, though it’s probably TMI if I go into detail here.
Anyway, will be interested to see whether others have a similar need, or whether there are alternative solutions I have missed.