Hi fellow developers,
I ran into an issue with my app (and solved it 🙂) and I though others might benefit from this information as well.
Take this query in the API Playground
I was expecting a result with an array of column values [{text obj}, {status obj}] as that is the order of the arguments.
However what I did got returned was an array [{status obj}, {text obj}] (see below) as the API returns things in the order they appear in the board, and not in the order of the arguments.
So, if you think your code can iterate through the items array and then rely on column_values[0] and column_values[1] you might want to rethink 🙂. Also, make sure you test your app on your board after you jiggled around some columns.
The most easy way to make your code independent of the order of columns in your board is to make sure you always ask for one column at the time. A more challenging solutions to solve this phenomenon is to sort the array in the order you want it sorted.