sortBy

Selects the order of the response.

Applies to: latest, timeseries

Value: auto, or the name of a sort order that is available for the entity.

Important: sortBy=auto is always accepted and lets S&P Global select the order that gives the best performance. Use another value only on the advice of S&P Global.

On the timeseries service sortBy can name a field that the entity is indexed on, to return the records in the order of that field instead of by id and time. The valid names are those that the request form of the HTML view offers; the fields must be indexed and you must be entitled to them. Use this only on the advice of S&P Global. descending then reverses the whole order. It cannot be combined with groupById, groupByIdAndTime or filters on the latest value of a field.

sortBy changes the format of the after value that is used to request the next page. Request an envelope, which carries the correct after value.

In API version 2 the sort order of the latest service is selected automatically and sortBy is not supported; use rankBy instead to return top results sorted by a field. On the timeseries service auto is not supported in version 2; sort orders cannot be combined with groupById.