Dataset results automatically sorted?


#1

How to have the dataset results in the same sequence as entered in the Page Functions?
As the data is being sorted in the column / fields names.


#2

Hello @h3034.h3467.h1961,

Objects (as entered in the pageFunction) have no guaranteed sort order. They mostly come up in a certain way, but it can not be relied upon. Thus, if you want a specific sorting order for your dataset, please use the fields query parameter of our API to specify the desired sorting.

The API documentation is here.

Essentially, what you need to do is add all the items in the correct order such as ?fields=firstItem,secondItem,thirdItem … and the system will output your dataset with the fields sorted in that order.