I try to obtain Xpath result collection ordered by specific query parameters. Basically I try to reproduce the standard SQL ORDER BY close.
I have documents like: <publidoc language="fr" name="defaut" >...</publidoc> <publidoc language="fr" name="news" >...</publidoc> <publidoc language="fr" name="galerie" >...</publidoc> I would like the following query to be ordered by [EMAIL PROTECTED] //[EMAIL PROTECTED]'fr'] I created an indexer: xindice add_indexer -c /db/publidocs -n publidocnameattindex -p [EMAIL PROTECTED] And then modified the Xpath query as: //[EMAIL PROTECTED] and @language='fr'] In hope that the @name would trigger the indexer use as well as the indexer would order the @name alphabetically ... To many assumptions I guess :) it did not change the result ordering. Any idea if there is an efficient way of ordering Xpath result collection ? Patrick