The repository spec JCR 170, section 6.6.3.5 describes the use of the ORDER BY clause. It appears to operate more or less consistent with the SQL order by clause whether you are using SQL syntax or XPath syntax for your query.
--David Gauthier, Stephane (CH Temp) wrote: >Hi Magnolians, > >I would like to go further with queries on jcr:path and I'm wondering >whether it's possible to set an order statement in the query? And how? >Perhaps it's not the right method and I shall better sort my results. >Any advice/experience on the question? > >Many thanks. > >St�phane > > >St�phane Gauthier * Intranet / Internet >Lloyds TSB International Private Banking > > > >************************************************************************************ >This email and any files transmitted with it are confidential and intended >solely for the use of the individual or entity to whom they are addressed. >If you have received this email in error, please notify the system manager >([EMAIL PROTECTED]) and delete the message with any attached files from your >system. >The confidentiality and integrity of this message cannot be guaranteed on the >Internet and the sender does not accept liability for its content. > >*********************************************************************************** > > >---------------------------------------------------------------- >for list details see >http://www.magnolia.info/en/magnolia/developer.html >---------------------------------------------------------------- > > ---------------------------------------------------------------- for list details see http://www.magnolia.info/en/magnolia/developer.html ----------------------------------------------------------------
