<?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 Sort sequence when sorting by expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sort-sequence-when-sorting-by-expression/m-p/297647#M584824</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Sort by expression looks at the numeric evaluation of the expression.&lt;/P&gt;&lt;P&gt;You could use the match function.&lt;/P&gt;&lt;P&gt;For example: match(fieldname,'HC','PD','WD','SO','WO','XO')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Aug 2011 14:57:49 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-08-24T14:57:49Z</dc:date>
    <item>
      <title>Sort sequence when sorting by expression</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-sequence-when-sorting-by-expression/m-p/297646#M584823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When sorting codes HC, PD, SO, WD, WO, XO alphabetically they come out in proper sequence.&amp;nbsp; However, when sorting the associated description using the codes in a "sort by expression", the resulting sequence is HC, PD, WD, SO, WO, XO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It appears to me that the sort is using the last character as the primary sort (hence&amp;nbsp; C(H), D(P), D(W), O(S), O(W), O(X)...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should I be raising this as a bug?&amp;nbsp; Or have I missed a setting somewhere?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2011 14:50:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-sequence-when-sorting-by-expression/m-p/297646#M584823</guid>
      <dc:creator />
      <dc:date>2011-08-24T14:50:58Z</dc:date>
    </item>
    <item>
      <title>Sort sequence when sorting by expression</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-sequence-when-sorting-by-expression/m-p/297647#M584824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Sort by expression looks at the numeric evaluation of the expression.&lt;/P&gt;&lt;P&gt;You could use the match function.&lt;/P&gt;&lt;P&gt;For example: match(fieldname,'HC','PD','WD','SO','WO','XO')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2011 14:57:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-sequence-when-sorting-by-expression/m-p/297647#M584824</guid>
      <dc:creator />
      <dc:date>2011-08-24T14:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: Sort sequence when sorting by expression</title>
      <link>https://community.qlik.com/t5/QlikView/Sort-sequence-when-sorting-by-expression/m-p/297648#M584825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Bert.&amp;nbsp; &lt;/P&gt;&lt;P&gt;That works.&amp;nbsp; It does mean hardcoding the values into the expression, though, which is something I was trying to avoid.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2011 15:51:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sort-sequence-when-sorting-by-expression/m-p/297648#M584825</guid>
      <dc:creator />
      <dc:date>2011-08-24T15:51:47Z</dc:date>
    </item>
  </channel>
</rss>

