« Return to Thread: Should be easy: sort by mgnl:lastmodified

Re: Should be easy: sort by mgnl:lastmodified

by Thomas Duffey :: Rate this Message:

Reply to Author | View in Thread



On Jun 25, 2009, at 11:32 AM, Will Scheidegger wrote:

> This _should_ be an easy one, but after an hour of trying and  
> googling my content nodes are still not being sorted by their  
> modification date.
>
> My query:
>
> /jcr:root/path/to/data//element(*, myDataType) [@owner =  
> 'superuser'] order by MetaData/@mgnl:lastmodified
>
> - It does something, because when I leave the order by... away I get  
> a different sort order
> - But the nodes are definitely not sorted by their modification date.

I struggled with this for a while and ended up getting the unsorted  
list and then sorting programatically :(

Tom


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <user-list-unsubscribe@...>
----------------------------------------------------------------

 « Return to Thread: Should be easy: sort by mgnl:lastmodified