Click to Rate and Give Feedback
MSDN
MSDN Library
Live Services SDK
Live Framework SDK
 Live Framework Query Sorting Operat...

  Switch on low bandwidth view
Live Framework Query Sorting Operators
[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.

© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker