<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Order by XPATH in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/order-by-xpath/m-p/98407#M67853</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I did it: as explained in the freemarker guide, you can sort on sub-properties using the notation ['x','y','z'…] to do a sort by the x.y.z… property.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So getting the folders ordered by name is done in this way:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;#list space.childrenByXPath[".//*[subtypeOf('cm:folder')]"]?sort_by(['properties','name']) as child &amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Aug 2007 14:01:02 GMT</pubDate>
    <dc:creator>ale_carraro</dc:creator>
    <dc:date>2007-08-08T14:01:02Z</dc:date>
    <item>
      <title>Order by XPATH</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/order-by-xpath/m-p/98405#M67851</link>
      <description>Hi, I'm writing a Custom View, altering the one called Presentation Templates/recent_docs.ftlI'm looking for folders, so my XPath query is: .//*[subtypeOf('cm:folder')]it works, but it returns the content pseudo-randomly. Is there a way to get the folders ordered by Title, or Name?thanks Alex</description>
      <pubDate>Mon, 16 Jul 2007 10:43:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/order-by-xpath/m-p/98405#M67851</guid>
      <dc:creator>ale_carraro</dc:creator>
      <dc:date>2007-07-16T10:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: Order by XPATH</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/order-by-xpath/m-p/98406#M67852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Lucene queries support ordering by the SearchParameters object. XPATH supports ordering according to the extensions in the JCR 1.0 spec. The availability of this depends on the langauage selected on the call to selectNodes. I am not sure if this is exposed via the template language. You may have to check the wiki docs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2007 13:39:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/order-by-xpath/m-p/98406#M67852</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2007-07-23T13:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: Order by XPATH</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/order-by-xpath/m-p/98407#M67853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I did it: as explained in the freemarker guide, you can sort on sub-properties using the notation ['x','y','z'…] to do a sort by the x.y.z… property.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So getting the folders ordered by name is done in this way:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;#list space.childrenByXPath[".//*[subtypeOf('cm:folder')]"]?sort_by(['properties','name']) as child &amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2007 14:01:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/order-by-xpath/m-p/98407#M67853</guid>
      <dc:creator>ale_carraro</dc:creator>
      <dc:date>2007-08-08T14:01:02Z</dc:date>
    </item>
  </channel>
</rss>

