This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
How does one select the direction of a sort order when using the Order.By object? It takes a single parameter, the name of the field being sorted over, but I don't see how to tell it what direction to sort it in... I saw other posts about putting an OrderBy Decoration in the LightSpeed object model class, but my order direction could be dynamic. |
|
|
Orders are ascending by default. To select descending order, apply the Descending() operator: query.Order = Order.By("Priority").Descending(); |
|
|
Thanks so much, I didn't see that int he documentation immediately. |
|