I don't know exactly, but I think the orderby clause does not support resolution of references.
Cheers, Alex On 07.12.11 15:27, "Mathaj, Kerstin" <[email protected]> wrote: >Hi, > > > >i have a node with a weakreference property to an other node. E.g. > > > >[my:book] > >- publisher [WEAKREFERENCE] > >... > > > >[my:publisher] > > - name > > > >I want to query my:book and reference to my:publisher.name, to order by >the >name. I tried: > > > >.../element(*,my:book)[some conditions] order by publisher/@name ascending > > > >The result isn't ordered by the publisher.name, but by the weakreference >id >like (JCR identifier: 149553de-2646-4b95-8577-17c10776c4a8) > > > >So, how can I use order by in xpath with weakreferences? > > > >Thanks > >k.m. > > -- Alexander Klimetschek Developer // Adobe (Day) // Berlin - Basel
