<?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: Sorting elements in template in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/sorting-elements-in-template/m-p/23013#M11106</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You may find what you are looking for in the Freemarker documentation (&lt;/SPAN&gt;&lt;A href="http://freemarker.sourceforge.net/docs/ref_builtins_sequence.html" rel="nofollow noopener noreferrer"&gt;http://freemarker.sourceforge.net/docs/ref_builtins_sequence.html&lt;/A&gt;&lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Returns the sequence sorted in ascending order. This will work only if all subvariables are strings, or if all subvariables are numbers, or, since FreeMarker 2.3.1, if all subvariables are date values (date, time, or date+time). If the subvariables are strings, it uses locale (language) specific lexical sorting (which is usually not case sensitive). For example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;#assign ls = ["whale", "Barbara", "zeppelin", "aardvark", "beetroot"]?sort&amp;gt;&lt;BR /&gt;&amp;lt;#list ls as i&amp;gt;${i} &amp;lt;/#list&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&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, 10 May 2006 09:22:28 GMT</pubDate>
    <dc:creator>simon</dc:creator>
    <dc:date>2006-05-10T09:22:28Z</dc:date>
    <item>
      <title>Sorting elements in template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/sorting-elements-in-template/m-p/23012#M11105</link>
      <description>Exists any possibility to sort the sequence list of child nodes returning from the space.children freemarker function? I need to iterate the list sorted by child.name.&amp;lt;#list space.children as child&amp;gt;…&amp;lt;/#list&amp;gt;‍‍‍‍‍ThanksAndrew</description>
      <pubDate>Tue, 09 May 2006 17:29:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/sorting-elements-in-template/m-p/23012#M11105</guid>
      <dc:creator>andrepra</dc:creator>
      <dc:date>2006-05-09T17:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: Sorting elements in template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/sorting-elements-in-template/m-p/23013#M11106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You may find what you are looking for in the Freemarker documentation (&lt;/SPAN&gt;&lt;A href="http://freemarker.sourceforge.net/docs/ref_builtins_sequence.html" rel="nofollow noopener noreferrer"&gt;http://freemarker.sourceforge.net/docs/ref_builtins_sequence.html&lt;/A&gt;&lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Returns the sequence sorted in ascending order. This will work only if all subvariables are strings, or if all subvariables are numbers, or, since FreeMarker 2.3.1, if all subvariables are date values (date, time, or date+time). If the subvariables are strings, it uses locale (language) specific lexical sorting (which is usually not case sensitive). For example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;#assign ls = ["whale", "Barbara", "zeppelin", "aardvark", "beetroot"]?sort&amp;gt;&lt;BR /&gt;&amp;lt;#list ls as i&amp;gt;${i} &amp;lt;/#list&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&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, 10 May 2006 09:22:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/sorting-elements-in-template/m-p/23013#M11106</guid>
      <dc:creator>simon</dc:creator>
      <dc:date>2006-05-10T09:22:28Z</dc:date>
    </item>
  </channel>
</rss>

