<?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: Sort order issue in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Sort-order-issue/m-p/1565514#M41185</link>
    <description>&lt;P&gt;Have you tried to sort your account table at script level and use the load order sort in your application?&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;LOAD text(AccountName2 ) as&amp;nbsp;AccountName2 INLINE [&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AccountName2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ABC123&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2-22-123-5131&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;02-4534222-5000283 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;0005 06020&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;58455315&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Order by&amp;nbsp;AccountName2;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 05 Apr 2019 04:15:50 GMT</pubDate>
    <dc:creator>Vegar</dc:creator>
    <dc:date>2019-04-05T04:15:50Z</dc:date>
    <item>
      <title>Sort order issue</title>
      <link>https://community.qlik.com/t5/App-Development/Sort-order-issue/m-p/1565510#M41184</link>
      <description>&lt;P&gt;I have a set of "account numbers" which are alphanumeric.&amp;nbsp; They can vary from purely numbers (48320010), to "number-like" (2-22-122-120322) to "alphanumeric" (ABC123).&amp;nbsp; We'd like to allow users to sort these account numbers, and given the variability in them, alphanumeric sorting makes the most sense.&lt;/P&gt;&lt;P&gt;I have set the sorting in a table to "Custom", unchecked "Sort Numerically", and checked "Sort Alphabetically".&amp;nbsp; I still get a sort order which seems to be ordering somewhat numerically.&amp;nbsp; I've tried wrapping the field in "TEXT" to force it to be text, still no luck.&lt;/P&gt;&lt;P&gt;For the table&amp;nbsp;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;BR /&gt;AccountName2&lt;BR /&gt;ABC123&lt;BR /&gt;2-22-123-5131&lt;BR /&gt;02-4534222-5000283 0&lt;BR /&gt;0005 06020&lt;BR /&gt;58455315&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;I would expect the order to be exactly what I would get passing them through the Unix or Windows sort function:&lt;/P&gt;&lt;P&gt;0005 06020&lt;BR /&gt;02-4534222-5000283 0&lt;BR /&gt;2-22-123-5131&lt;BR /&gt;58455315&lt;BR /&gt;ABC123&lt;/P&gt;&lt;P&gt;But, in Qlik, I get the following order for TEXT(AccountName), sorted Alphabetically, Ascending:&lt;/P&gt;&lt;P&gt;2-22-123-5131&lt;BR /&gt;02-4534222-5000283 0&lt;BR /&gt;0005 06020&lt;BR /&gt;58455315&lt;BR /&gt;ABC123&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;The problem gets very, very strange looking when we are dealing with 100's of account numbers.&lt;/P&gt;&lt;P&gt;Any suggestions?&amp;nbsp; I understand it is an issue with Qlik's internal representation of numbers versus strings, and that somehow in this column items that are numeric or number-like are treated differently than "text" columns.&amp;nbsp; &amp;nbsp;But, even if I force the numbers (in the load script!) to all start with "A", the sort order still seems to have an element of "numberness" to it:&lt;/P&gt;&lt;P&gt;A2-22-123-5131&lt;BR /&gt;A02-4534222-5000283 0&lt;BR /&gt;A0005 06020&lt;BR /&gt;A58455315&lt;BR /&gt;ABC123&lt;/P&gt;&lt;P&gt;I have spent far too many hours on what I thought would be a simple issue to fix.&amp;nbsp; Any suggestions on what next to try??&lt;/P&gt;&lt;P&gt;QVF with examples attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2019 04:02:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sort-order-issue/m-p/1565510#M41184</guid>
      <dc:creator>shope99</dc:creator>
      <dc:date>2019-04-05T04:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: Sort order issue</title>
      <link>https://community.qlik.com/t5/App-Development/Sort-order-issue/m-p/1565514#M41185</link>
      <description>&lt;P&gt;Have you tried to sort your account table at script level and use the load order sort in your application?&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;LOAD text(AccountName2 ) as&amp;nbsp;AccountName2 INLINE [&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AccountName2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ABC123&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2-22-123-5131&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;02-4534222-5000283 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;0005 06020&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;58455315&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Order by&amp;nbsp;AccountName2;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2019 04:15:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sort-order-issue/m-p/1565514#M41185</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2019-04-05T04:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: Sort order issue</title>
      <link>https://community.qlik.com/t5/App-Development/Sort-order-issue/m-p/1565518#M41186</link>
      <description>Thanks for the quick reply! I couldn't get the order by to work on the inline, but in the same spirit I tried&lt;BR /&gt;[Accounts3]:&lt;BR /&gt;LOAD TEXT(AccountName) as AccountName3&lt;BR /&gt;RESIDENT Accounts&lt;BR /&gt;Order By AccountName;&lt;BR /&gt;&lt;BR /&gt;And, then I removed all sort options ("custom" -&amp;gt; unchecked both sort numerically and alphabetically). The chart properties pane even says "Currently Sorting on Load Order". Here's what that changed to:&lt;BR /&gt;&lt;BR /&gt;0005 06020&lt;BR /&gt;58455315&lt;BR /&gt;2-22-123-5131&lt;BR /&gt;02-4534222-5000283 0&lt;BR /&gt;ABC123&lt;BR /&gt;&lt;BR /&gt;Which, in some ways, is even more bewildering.&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Apr 2019 04:26:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sort-order-issue/m-p/1565518#M41186</guid>
      <dc:creator>shope99</dc:creator>
      <dc:date>2019-04-05T04:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: Sort order issue</title>
      <link>https://community.qlik.com/t5/App-Development/Sort-order-issue/m-p/1565520#M41187</link>
      <description>&lt;P&gt;Maybe there is a glitch in how the QIX engine handle sorting for the moment? I experienced issues with alphabetical sorting of dual values a couple of days ago.&lt;/P&gt;&lt;P&gt;&lt;A title="How to sort a listbox with dual values alphabetical?" href="https://community.qlik.com/t5/QlikView-Layout-Visualizations/How-to-sort-a-listbox-with-dual-values-alphabetical/m-p/1564610#M70424" target="_blank" rel="noopener"&gt;How to sort a listbox with dual values alphabetical?&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2019 04:33:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sort-order-issue/m-p/1565520#M41187</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2019-04-05T04:33:50Z</dc:date>
    </item>
  </channel>
</rss>

