<?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 CQL: how to order documents by title (description,author...) in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/cql-how-to-order-documents-by-title-description-author/m-p/226751#M179881</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have the question:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;how can I order the Documents by Title (cm:title), Description (cm:description), Author (cm:author), etc. in CQL?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;for example, this code works great:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;SELECT D.* FROM Document AS D ORDER BY D.Name&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;BUT:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;SELECT D.* FROM Document AS D ORDER BY D.Title&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;or&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;SELECT D.* FROM Document AS D ORDER BY D.Description&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;will return errors: "Invalid column for document.Title selector alias D"&amp;nbsp; OR "Invalid column for document.Description selector alias D"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the WiKi I can't find how this properties are mapped (&lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/CMIS_Model_Mapping" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/CMIS_Model_Mapping&lt;/A&gt;&lt;SPAN&gt;). maybe community can help me in this situation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Big thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Sep 2009 16:23:49 GMT</pubDate>
    <dc:creator>serverok</dc:creator>
    <dc:date>2009-09-17T16:23:49Z</dc:date>
    <item>
      <title>CQL: how to order documents by title (description,author...)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cql-how-to-order-documents-by-title-description-author/m-p/226751#M179881</link>
      <description>Hi All,I have the question:how can I order the Documents by Title (cm:title), Description (cm:description), Author (cm:author), etc. in CQL?for example, this code works great&lt;IMG id="smileyfrustrated" class="emoticon emoticon-smileyfrustrated" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-frustrated.png" alt="Smiley Frustrated" title="Smiley Frustrated" /&gt;ELECT D.* FROM Document AS D ORDER BY D.Name‍BUT&lt;IMG id="smileyfrustrated" class="emoticon emoticon-smileyfrustrated" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-frustrated.png" alt="Smiley Frustrated" title="Smiley Frustrated" /&gt;ELECT D.* FROM Document AS D ORDER BY D.Title‍orSELECT D.* FROM Document A</description>
      <pubDate>Thu, 17 Sep 2009 16:23:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cql-how-to-order-documents-by-title-description-author/m-p/226751#M179881</guid>
      <dc:creator>serverok</dc:creator>
      <dc:date>2009-09-17T16:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: CQL: how to order documents by title (description,author...)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cql-how-to-order-documents-by-title-description-author/m-p/226752#M179882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Old post, but in case it helps someone, the title and description are defined in an aspect. CMIS 1.0 doesn't support aspects natively but Alfresco implements support for aspects through joins. So here is how you'd find all documents with a name like *test* ordered by their description:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;select d.*,t.* from cmis:document as d join cm:titled as t on d.cmis&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;bjectId = t.cmis&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;bjectId where d.cmis:name like '%test%' order by t.cm:description&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2012 18:36:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cql-how-to-order-documents-by-title-description-author/m-p/226752#M179882</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2012-07-05T18:36:45Z</dc:date>
    </item>
  </channel>
</rss>

