<?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 List box sort malfunction in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/List-box-sort-malfunction/m-p/528251#M551256</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm facing an issue when trying to sort the values in a month list box.&lt;BR /&gt;I'm doing the sort based on a field called MONTH_SHORT_NAME which contains values like JAN, FEB...DEC&lt;BR /&gt;The object I sort by is MONTH_MONTH_OF_YEAR which is a number from 1 to 12. The sort is working perfectly until I click on one month and the selected value goes to the end of the list. I don't understand why this behavior, considering in the proprieties I choose to sort by the expression MONTH_MONTH_OF_YEAR and not by state.&lt;BR /&gt;Please, take a look at the enclosed document.&lt;/P&gt;&lt;P&gt;Do you know why it doesn't keep the sort?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Nov 2013 21:32:21 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-11-14T21:32:21Z</dc:date>
    <item>
      <title>List box sort malfunction</title>
      <link>https://community.qlik.com/t5/QlikView/List-box-sort-malfunction/m-p/528251#M551256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm facing an issue when trying to sort the values in a month list box.&lt;BR /&gt;I'm doing the sort based on a field called MONTH_SHORT_NAME which contains values like JAN, FEB...DEC&lt;BR /&gt;The object I sort by is MONTH_MONTH_OF_YEAR which is a number from 1 to 12. The sort is working perfectly until I click on one month and the selected value goes to the end of the list. I don't understand why this behavior, considering in the proprieties I choose to sort by the expression MONTH_MONTH_OF_YEAR and not by state.&lt;BR /&gt;Please, take a look at the enclosed document.&lt;/P&gt;&lt;P&gt;Do you know why it doesn't keep the sort?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 21:32:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-box-sort-malfunction/m-p/528251#M551256</guid>
      <dc:creator />
      <dc:date>2013-11-14T21:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: List box sort malfunction</title>
      <link>https://community.qlik.com/t5/QlikView/List-box-sort-malfunction/m-p/528252#M551257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you change your SORT expression to&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;= &lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;MONTH_SHORT_NAME)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 21:55:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-box-sort-malfunction/m-p/528252#M551257</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-14T21:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: List box sort malfunction</title>
      <link>https://community.qlik.com/t5/QlikView/List-box-sort-malfunction/m-p/528253#M551258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe that this is occurring because when you make a selection the other months are not selected. Therefore &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.800000190734863px;"&gt;MONTH_MONTH_OF_YEAR&lt;/SPAN&gt; is essentially NULL. If you change ascending to descending you see the selected values are now at the top. You could do either of the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Sort by load order. This assumes that the months are loaded in the correct order.&lt;/P&gt;&lt;P&gt;- Load the Months as dual data types where the second parameter is the load order. Then they will sort correctly. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 21:58:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-box-sort-malfunction/m-p/528253#M551258</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-14T21:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: List box sort malfunction</title>
      <link>https://community.qlik.com/t5/QlikView/List-box-sort-malfunction/m-p/528254#M551259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would recommend trying the dual() function in the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;...,&lt;/P&gt;&lt;P&gt;...,&lt;/P&gt;&lt;P&gt;dual(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;MONTH_SHORT_NAME&lt;/SPAN&gt;, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;MONTH_MONTH_OF_YEAR&lt;/SPAN&gt;) as MONTH,&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the list box you can then do a numeric sort and it should sort correctly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 21:58:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-box-sort-malfunction/m-p/528254#M551259</guid>
      <dc:creator />
      <dc:date>2013-11-14T21:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: List box sort malfunction</title>
      <link>https://community.qlik.com/t5/QlikView/List-box-sort-malfunction/m-p/528255#M551260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Better, You could make the Field as Dual(MONTH_SHORT_NAME, MONTH_MONTH_OF_YEAR) and apply sort by Numeric as&amp;nbsp; ascending.&lt;/P&gt;&lt;P&gt;If your looking a solution to the current approach. then try&lt;/P&gt;&lt;P&gt;Max({1} MONTH_MONTH_OF_YEAR) instead of MONTH_MONTH_OF_YEAR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 22:16:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-box-sort-malfunction/m-p/528255#M551260</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2013-11-14T22:16:33Z</dc:date>
    </item>
  </channel>
</rss>

