<?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 a field alphabetically first, then numerically in current selection in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Sort-a-field-alphabetically-first-then-numerically-in-current/m-p/1811606#M66178</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/57911"&gt;@esraltnl&lt;/a&gt;, this is a bit tricky and I think following solution could work. This is replacing numbers with z character plus the digit to move them to the end of the order, but z characters will be also replaced adding any punctuation sign to keep them before numbers. Something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;data:
Load	Field, Replace(FieldOrder, '9', 'z9')	AS FieldOrder;
Load	Field, Replace(FieldOrder, '8', 'z8')	AS FieldOrder;
Load	Field, Replace(FieldOrder, '7', 'z7')	AS FieldOrder;
Load	Field, Replace(FieldOrder, '6', 'z6')	AS FieldOrder;
Load	Field, Replace(FieldOrder, '5', 'z5')	AS FieldOrder;
Load	Field, Replace(FieldOrder, '4', 'z4')	AS FieldOrder;
Load	Field, Replace(FieldOrder, '3', 'z3')	AS FieldOrder;
Load	Field, Replace(FieldOrder, '2', 'z2')	AS FieldOrder;
Load	Field, Replace(FieldOrder, '1', 'z1')	AS FieldOrder;
Load	Field, Replace(FieldOrder, '0', 'z0')	AS FieldOrder;
Load	Field, Replace(FieldOrder, 'z', 'z.')	AS FieldOrder;
Load	Field, Replace(Field,      'Z', 'Z.')	AS FieldOrder;
LOAD * 
Inline [
Field
ABCDER
A1GB
BYX
1AHYF
2348
AHJF78
Z6HFPL
];&lt;/LI-CODE&gt;&lt;P&gt;I'm not sure if this will cover all the situations, but could be a start point for you:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JuanGerardo_0-1622377122042.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/55952i470308C8B133E449/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JuanGerardo_0-1622377122042.png" alt="JuanGerardo_0-1622377122042.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;JG&lt;/P&gt;</description>
    <pubDate>Sun, 30 May 2021 12:19:11 GMT</pubDate>
    <dc:creator>JuanGerardo</dc:creator>
    <dc:date>2021-05-30T12:19:11Z</dc:date>
    <item>
      <title>Sort a field alphabetically first, then numerically in current selection</title>
      <link>https://community.qlik.com/t5/App-Development/Sort-a-field-alphabetically-first-then-numerically-in-current/m-p/1811389#M66134</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I'm working on QlikSense.I have a dataset like the one below.&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;SPAN&gt;data:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LOAD * Inline [&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Field&lt;/SPAN&gt;&lt;BR /&gt;ABCDER&lt;BR /&gt;A1GB&lt;BR /&gt;BYX&lt;BR /&gt;1AHYF&lt;BR /&gt;2348&lt;BR /&gt;AHJF78&lt;BR /&gt;Z6HFPL&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I want the current selection to be listed as follows. It is enough to consider the first letter. According to the first letter, first alphabetically a..z, then numerically 1..9.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;output:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ABCDER&lt;BR /&gt;AHJF78&lt;BR /&gt;A1GB&lt;BR /&gt;Z6HFPL&lt;BR /&gt;BYX&lt;BR /&gt;1AHYF&lt;BR /&gt;2348&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How can I do it, can you help?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 May 2021 13:44:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sort-a-field-alphabetically-first-then-numerically-in-current/m-p/1811389#M66134</guid>
      <dc:creator>esraltnl</dc:creator>
      <dc:date>2021-05-28T13:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: Sort a field alphabetically first, then numerically in current selection</title>
      <link>https://community.qlik.com/t5/App-Development/Sort-a-field-alphabetically-first-then-numerically-in-current/m-p/1811606#M66178</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/57911"&gt;@esraltnl&lt;/a&gt;, this is a bit tricky and I think following solution could work. This is replacing numbers with z character plus the digit to move them to the end of the order, but z characters will be also replaced adding any punctuation sign to keep them before numbers. Something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;data:
Load	Field, Replace(FieldOrder, '9', 'z9')	AS FieldOrder;
Load	Field, Replace(FieldOrder, '8', 'z8')	AS FieldOrder;
Load	Field, Replace(FieldOrder, '7', 'z7')	AS FieldOrder;
Load	Field, Replace(FieldOrder, '6', 'z6')	AS FieldOrder;
Load	Field, Replace(FieldOrder, '5', 'z5')	AS FieldOrder;
Load	Field, Replace(FieldOrder, '4', 'z4')	AS FieldOrder;
Load	Field, Replace(FieldOrder, '3', 'z3')	AS FieldOrder;
Load	Field, Replace(FieldOrder, '2', 'z2')	AS FieldOrder;
Load	Field, Replace(FieldOrder, '1', 'z1')	AS FieldOrder;
Load	Field, Replace(FieldOrder, '0', 'z0')	AS FieldOrder;
Load	Field, Replace(FieldOrder, 'z', 'z.')	AS FieldOrder;
Load	Field, Replace(Field,      'Z', 'Z.')	AS FieldOrder;
LOAD * 
Inline [
Field
ABCDER
A1GB
BYX
1AHYF
2348
AHJF78
Z6HFPL
];&lt;/LI-CODE&gt;&lt;P&gt;I'm not sure if this will cover all the situations, but could be a start point for you:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JuanGerardo_0-1622377122042.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/55952i470308C8B133E449/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JuanGerardo_0-1622377122042.png" alt="JuanGerardo_0-1622377122042.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;JG&lt;/P&gt;</description>
      <pubDate>Sun, 30 May 2021 12:19:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Sort-a-field-alphabetically-first-then-numerically-in-current/m-p/1811606#M66178</guid>
      <dc:creator>JuanGerardo</dc:creator>
      <dc:date>2021-05-30T12:19:11Z</dc:date>
    </item>
  </channel>
</rss>

