New in 1.34.0 (BETA)

order()

Returns the order specification resulting from the DataScope.

The application integrating the Scrivito SDK with an external data provider uses this parameter for sorting the returned results.

Returns

Array – An order specification describes how the results are sorted by the application integrating the Scrivito SDK with an external data provider. Each entry in the order specification is a tuple of strings. The first entry in the tuple represents the attribute name to which the sorting is to be applied (e.g. title). The second entry in the tuple is the order direction. There are two possible order directions: asc and desc. The order specification may be an empty array if no particular order has been specified.