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
|
I have an entity, two of the properties are dateFrom and dateTo, as well as other entitied. I want to query this collection of enties to sort based on th eshortest period of time between the datefrom and dateto. i.e an entity with only 1 day difference between the two dates would sort to a position before an entity with one week between the dates. I have looked at using subexpressions, and maybe the between method, but I cannot work it out. Can someone please assist with this. Thanks |
|
|
I think you just need an OrderBy clause (LINQ) or an Order specifier (classic API): // LINQ // Classic API |
|