[This is preliminary documentation and is subject to change.]
The Live Framework query sorting operators enable you to return data that is sorted by a field contained in the requested resource. The $orderby operator sorts data in ascending order. Appending the desc parameter to the $orderby operator enables you to sort data in a descending order.
The following examples demonstrate the correct use of the $orderby operator and the optional desc parameter.
|
HTTP Request
|
GET https://user-ctp.windows.net/V0.1/Mesh/MeshObjects/{meshObjectID}
/DataFeeds/{dataFeedID}/DataEntries/?$orderby=PublishDate
|
|
Description
|
The server returns a collection of data entries ordered by Publish Date, in ascending order.
|
|
HTTP Request
|
GET https://user-ctp.windows.net/V0.1/Mesh/MeshObjects/{meshObjectID}
/DataFeeds/{dataFeedID}/DataEntries/?$orderby=PublishDate desc
|
|
Description
|
The server returns a collection of data entries ordered by Publish Date, in descending order.
|