<?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>article Sorting Alphanumeric Data in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/Sorting-Alphanumeric-Data/ta-p/1712855</link>
    <description>&lt;P&gt;&lt;SPAN&gt;QlikView and Qlik Sense do not apply strict alphabetic (ASCII) sort order for alphanumeric values. Instead alphanumeric values are&amp;nbsp;sorted in a natural sort order, where numerical parts are sorted based on their entire numerical value rather than per digit. &amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;During sorting the alphanumeric string is broken&amp;nbsp;into parts, where a part contains either all alphabetic characters&amp;nbsp;or all numeric characters. These parts are then compared against each other. If both chunks contain numbers, a numerical comparison is used. If either chunk contains characters, the ASCII comparison is used.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example it means that data like street addresses get sorted in a natural&amp;nbsp;order base don the street number. As shown in the example below the value 8 is considered smaller than 22, base don their numerical values rather than the opposite based on their text values.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ascending and descending example.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/46074i9A28BD5C3C8F01F6/image-size/large?v=v2&amp;amp;px=999" role="button" title="ascending and descending example.png" alt="ascending and descending example.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;U&gt;Reference&lt;/U&gt;:&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Natural sort order, Wikipedia;&amp;nbsp;&lt;A href="https://en.wikipedia.org/wiki/Natural_sort_order" target="_blank" rel="noopener" data-cke-saved-href="https://en.wikipedia.org/wiki/Natural_sort_order"&gt;https://en.wikipedia.org/wiki/Natural_sort_order&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;U&gt;Environment&lt;/U&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;Qlik Sense - all releases&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;QlikView - all releases&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;STRONG&gt;Resolution&lt;/STRONG&gt;&lt;/H3&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Strict sort order can be accomplished by reusing loaded data order, which can be controlled by data source for example by applying SQL ORDER BY clause.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;During data load the order can be saved by utilizing the loaded Record Number.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="data load.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/46075i458EC46113759CFC/image-size/large?v=v2&amp;amp;px=999" role="button" title="data load.png" alt="data load.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; The loaded record order can then be used as sorting order, by applying it as an expression to sort by.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="loaded record.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/46076iF3A2C92791916E81/image-size/large?v=v2&amp;amp;px=999" role="button" title="loaded record.png" alt="loaded record.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt; &lt;/P&gt;</description>
    <pubDate>Tue, 10 May 2022 19:23:50 GMT</pubDate>
    <dc:creator>ToniKautto</dc:creator>
    <dc:date>2022-05-10T19:23:50Z</dc:date>
    <item>
      <title>Sorting Alphanumeric Data</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Sorting-Alphanumeric-Data/ta-p/1712855</link>
      <description>&lt;P&gt;&lt;SPAN&gt;QlikView and Qlik Sense do not apply strict alphabetic (ASCII) sort order for alphanumeric values. Instead alphanumeric values are&amp;nbsp;sorted in a natural sort order, where numerical parts are sorted based on their entire numerical value rather than per digit. &amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;During sorting the alphanumeric string is broken&amp;nbsp;into parts, where a part contains either all alphabetic characters&amp;nbsp;or all numeric characters. These parts are then compared against each other. If both chunks contain numbers, a numerical comparison is used. If either chunk contains characters, the ASCII comparison is used.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example it means that data like street addresses get sorted in a natural&amp;nbsp;order base don the street number. As shown in the example below the value 8 is considered smaller than 22, base don their numerical values rather than the opposite based on their text values.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ascending and descending example.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/46074i9A28BD5C3C8F01F6/image-size/large?v=v2&amp;amp;px=999" role="button" title="ascending and descending example.png" alt="ascending and descending example.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;U&gt;Reference&lt;/U&gt;:&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Natural sort order, Wikipedia;&amp;nbsp;&lt;A href="https://en.wikipedia.org/wiki/Natural_sort_order" target="_blank" rel="noopener" data-cke-saved-href="https://en.wikipedia.org/wiki/Natural_sort_order"&gt;https://en.wikipedia.org/wiki/Natural_sort_order&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;U&gt;Environment&lt;/U&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;Qlik Sense - all releases&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;QlikView - all releases&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;STRONG&gt;Resolution&lt;/STRONG&gt;&lt;/H3&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Strict sort order can be accomplished by reusing loaded data order, which can be controlled by data source for example by applying SQL ORDER BY clause.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;During data load the order can be saved by utilizing the loaded Record Number.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="data load.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/46075i458EC46113759CFC/image-size/large?v=v2&amp;amp;px=999" role="button" title="data load.png" alt="data load.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; The loaded record order can then be used as sorting order, by applying it as an expression to sort by.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="loaded record.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/46076iF3A2C92791916E81/image-size/large?v=v2&amp;amp;px=999" role="button" title="loaded record.png" alt="loaded record.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2022 19:23:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Sorting-Alphanumeric-Data/ta-p/1712855</guid>
      <dc:creator>ToniKautto</dc:creator>
      <dc:date>2022-05-10T19:23:50Z</dc:date>
    </item>
  </channel>
</rss>

