jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torgeir Veimo <torg...@netenviron.com>
Subject sort by updated / created
Date Wed, 04 Jan 2012 07:31:36 GMT
My model has nodes with jcr:created and an optional nen:updated
property, if a node is updated after creation. I'd like to sort on
nen:updated, but if that property is not present, sort on the
jcr:created property.

I've tried

... order by @nen:updated, @jcr:created

in my xpath queries, but it doesn't seem to work as expected. Is such
fallback for non-existant properties not supported, or is it only
supported for sql queries? Am using jackrabbit 2.3.5.


View raw message