I think I found an other way:
- Don't limit the search to "myDataType" so you'll get the MetaData
nodes too.
- sort by @mgnl:lastModified
- only accept "myDataType" nodes in the result
At least this seems to do the trick for me.
-will
On 25.06.2009, at 18:52, Thomas Duffey wrote:
>
>
> 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@...>
> ----------------------------------------------------------------
>
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.htmlTo unsubscribe, E-mail to: <
user-list-unsubscribe@...>
----------------------------------------------------------------