Now, the column ID mirror66 is actually a user’s name. In my Graph QL query I had added mirror66 at the end, but it appeared first in the result set for each row. Is there a way to achieve more definitive results, like the result order to match the columns order that the system was requested with?
So, here result should be in the order of numbers,date72 and then mirror66 which is the user’s name.
Could someone provide some insights as to how we can change this default behaviour?
Thanks for reaching out. That’s a great question!
To be transparent with you, I’m afraid that specifying the ID in a specific order will not result in a query that will return column results in the order you’ve mentioned. Specifying the ID acts as a way to limit the data your query will return, but doesn’t determine or sort the results.
Instead, would it make any sense to use the column id or title in order to sort the results in your application’s logic, as the results would always be paired like:
Thank you for circling back with me! No worries at all, thank you for being here with me
I recommend returning the column IDs or Title within your API query, and then grouping the results within your code the way you’d like, based on the ID/Title, as our API will not currently perform that for you. So instead of just returning column_values { text }, you could retrieve column_values { text id title } and then interpret the results the way you’d like.