Help Center » Developing Applications » The MQL Cookbook » Sort by index and timestamp

Sort by index and timestamp

> If I ask for the set of properties on an item. What is the default
> ordering of those items?

It is effectively random.

It is actually in the order in which the items are found, which is
typically the order in which they were created, but that is not reliable
behavior.

The UI sorts by index and by timestamp by default. Items with a null
index have not been explicitly ordered.to sort a property in the way it is displayed in the UI use the following:

"/user/cotton/default_domain/broadcast/genre" : [ {
"guid" : null,
"name" : null,
"index" : null,
"link" : { "timestamp" : null },
"sort" : [ "index", "-link.timestamp" ] }

Recent Discussions about Sort by index and timestamp

There are no conversations on this topic. Would you like to start one?

Start the Discussion »