<?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: Alphanumeric sorting rules in JMP17 in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Alphanumeric-sorting-rules-in-JMP17/m-p/586608#M79213</link>
    <description>&lt;P&gt;Agree with&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/11568"&gt;@Victor_G&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;about the sorting rules reflecting Natural Sort Order ... you can see that Excel and JMP sort these differently. But I feel like we have spent so long trying to deal with Excel not understanding that in the below example 11 is larger than 2 that we forget that it is not normal. In your case, you have 943, 921 and 95.&amp;nbsp; The potential problem is if your coding system would want 95 to be highest? Then I agree with&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/11568"&gt;@Victor_G&lt;/a&gt;&amp;nbsp;about utilizing helper columns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alphabetical sorting:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;z11&lt;/LI&gt;&lt;LI&gt;z2&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Natural sorting:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;z2&lt;/LI&gt;&lt;LI&gt;z11&lt;/LI&gt;&lt;/OL&gt;</description>
    <pubDate>Wed, 04 Jan 2023 15:36:37 GMT</pubDate>
    <dc:creator>andersonmj2</dc:creator>
    <dc:date>2023-01-04T15:36:37Z</dc:date>
    <item>
      <title>Alphanumeric sorting rules in JMP17</title>
      <link>https://community.jmp.com/t5/Discussions/Alphanumeric-sorting-rules-in-JMP17/m-p/586409#M79202</link>
      <description>&lt;P&gt;I am using the Sort feature in JMP17.0.0 but am getting unexpected results.&amp;nbsp; The column I wish to sort by contains a list of serial numbers where each is a mix of letter and numeric characters (examples:&amp;nbsp;&amp;nbsp;G95VXWW8CID5,&amp;nbsp;G921J8D2CIE3,&amp;nbsp;G943H085CIB2).&amp;nbsp; The Sort-&amp;gt; Ascending action puts G95... ahead of G92... which is ahead of G94...&amp;nbsp; This is unexpected because while the first two characters in all three serial numbers are the same, G9, in the third position, 2 should be before 4 which should be before 5.&amp;nbsp; What are the rules by which JMP sorts alphanumeric values, and can those rules be edited?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 16:44:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Alphanumeric-sorting-rules-in-JMP17/m-p/586409#M79202</guid>
      <dc:creator>EdHutchins99</dc:creator>
      <dc:date>2023-06-08T16:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: Alphanumeric sorting rules in JMP17</title>
      <link>https://community.jmp.com/t5/Discussions/Alphanumeric-sorting-rules-in-JMP17/m-p/586422#M79204</link>
      <description>&lt;P&gt;Is there a Value Order column property set for the column you are sorting on?&amp;nbsp; Are there unprintable characters(including a blank) in the values?&lt;/P&gt;
&lt;P&gt;If you could provide a sample data table it would really help.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 12:32:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Alphanumeric-sorting-rules-in-JMP17/m-p/586422#M79204</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-01-04T12:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: Alphanumeric sorting rules in JMP17</title>
      <link>https://community.jmp.com/t5/Discussions/Alphanumeric-sorting-rules-in-JMP17/m-p/586426#M79205</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/46058"&gt;@EdHutchins99&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Welcome in the Community !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried to reproduce your problem with the three IDs you mentionned.&lt;/P&gt;&lt;P&gt;I think the behaviour of JMP is normal and expected, as it will try to sort by using first alphanumeric characters encountered.&lt;/P&gt;&lt;P&gt;Since the first character is G for all (no sorting possible based on alphabet), JMP will do the sorting on the numbers just after. So when trying to sort, since you don't have the same number of numeric characters and 95 &amp;lt; 921 &amp;lt; 943, JMP will display this G95..., G92... and G94... order.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you create a new column by recoding the ID column to only keep the first three alphanumeric character and then do the sorting on this new column, you should get the results you expect.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the formula script you can use in your new column if your original column is named ID (else you'll have to change ID by the name of the column you have in this formula) :&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Recode( :ID, {Word( [1 3], _rcNow, "", Unmatched( _rcNow ) )} )&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this will help you,&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 12:50:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Alphanumeric-sorting-rules-in-JMP17/m-p/586426#M79205</guid>
      <dc:creator>Victor_G</dc:creator>
      <dc:date>2023-01-04T12:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: Alphanumeric sorting rules in JMP17</title>
      <link>https://community.jmp.com/t5/Discussions/Alphanumeric-sorting-rules-in-JMP17/m-p/586443#M79206</link>
      <description>&lt;P&gt;I'm not sure if you can affect how the sorting is done without using Column Properties. You could create "support" column which you can then sort by to get the order you want or you could maybe use Query Builder&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1672835370051.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/48787i5FB6A7192ABB7D6F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1672835370051.png" alt="jthi_0-1672835370051.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1672835380694.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/48788iF71ABD61F61114D1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1672835380694.png" alt="jthi_1-1672835380694.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;or use Value Order Column Property&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_2-1672835566550.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/48789i49FB2B4018D01FED/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_2-1672835566550.png" alt="jthi_2-1672835566550.png" /&gt;&lt;/span&gt;&lt;CODE class=" language-jsl"&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE class=" language-jsl"&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;Some differences here when using functions for sorting:&lt;CODE class=" language-jsl"&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = New Table("Untitled",
	Add Rows(3),
	New Column("Column 1",
		Character,
		"Nominal",
		Set Values({"G95VXWW8CID5", "G921J8D2CIE3", "G943H085CIB2"})
	)
);

a = dt[0, 1];
show(a);
b = Associative Array(Column(dt, 1));
Show(Sort List(a));
Show(b &amp;lt;&amp;lt; get keys);
Show(Ranking(a));

dt &amp;lt;&amp;lt; Sort(By(:Column 1), Replace Table, Order(Ascending));
Show(dt[0, 1]);
Write();&lt;/CODE&gt;&lt;CODE class=" language-jsl"&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;a = {"G95VXWW8CID5", "G921J8D2CIE3", "G943H085CIB2"};
Sort List(a) = {"G921J8D2CIE3", "G943H085CIB2", "G95VXWW8CID5"};
b &amp;lt;&amp;lt; get keys = {"G921J8D2CIE3", "G943H085CIB2", "G95VXWW8CID5"};
Ranking(a) = [3, 1, 2];
dt[0,1] = {"G95VXWW8CID5", "G921J8D2CIE3", "G943H085CIB2"};
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;JMP table sort seems to be using &lt;A href="https://en.wikipedia.org/wiki/Natural_sort_order" target="_self"&gt;Natural Sort Order (wikipedia)&lt;/A&gt; like &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/11568"&gt;@Victor_G&lt;/a&gt; mentioned and not alphabetical sorting&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 12:49:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Alphanumeric-sorting-rules-in-JMP17/m-p/586443#M79206</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-01-04T12:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: Alphanumeric sorting rules in JMP17</title>
      <link>https://community.jmp.com/t5/Discussions/Alphanumeric-sorting-rules-in-JMP17/m-p/586583#M79210</link>
      <description>&lt;P&gt;Also, if you add a Value Order property to the column, JMP should immediately recognize that your data are alphanumeric and ask if you'd like to configure it with a simple sort. If you answer yes, then hit ok in the following dialog (i.e., don't adjust anything, just accept), then the sorting will work as you expect.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jed_Campbell_0-1672844799999.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/48791iBC651CAF228BAE00/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jed_Campbell_0-1672844799999.png" alt="Jed_Campbell_0-1672844799999.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jed_Campbell_1-1672844848058.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/48792iE4761C8E31B62858/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jed_Campbell_1-1672844848058.png" alt="Jed_Campbell_1-1672844848058.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jed_Campbell_2-1672844873647.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/48793iC88842D573F28192/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jed_Campbell_2-1672844873647.png" alt="Jed_Campbell_2-1672844873647.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 15:08:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Alphanumeric-sorting-rules-in-JMP17/m-p/586583#M79210</guid>
      <dc:creator>Jed_Campbell</dc:creator>
      <dc:date>2023-01-04T15:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: Alphanumeric sorting rules in JMP17</title>
      <link>https://community.jmp.com/t5/Discussions/Alphanumeric-sorting-rules-in-JMP17/m-p/586597#M79212</link>
      <description>&lt;P&gt;Thanks, everyone!&amp;nbsp; Setting the Value Order property, then sorting, puts the values in the order I expected.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 15:33:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Alphanumeric-sorting-rules-in-JMP17/m-p/586597#M79212</guid>
      <dc:creator>EdHutchins99</dc:creator>
      <dc:date>2023-01-04T15:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: Alphanumeric sorting rules in JMP17</title>
      <link>https://community.jmp.com/t5/Discussions/Alphanumeric-sorting-rules-in-JMP17/m-p/586608#M79213</link>
      <description>&lt;P&gt;Agree with&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/11568"&gt;@Victor_G&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;about the sorting rules reflecting Natural Sort Order ... you can see that Excel and JMP sort these differently. But I feel like we have spent so long trying to deal with Excel not understanding that in the below example 11 is larger than 2 that we forget that it is not normal. In your case, you have 943, 921 and 95.&amp;nbsp; The potential problem is if your coding system would want 95 to be highest? Then I agree with&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/11568"&gt;@Victor_G&lt;/a&gt;&amp;nbsp;about utilizing helper columns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alphabetical sorting:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;z11&lt;/LI&gt;&lt;LI&gt;z2&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Natural sorting:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;z2&lt;/LI&gt;&lt;LI&gt;z11&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Wed, 04 Jan 2023 15:36:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Alphanumeric-sorting-rules-in-JMP17/m-p/586608#M79213</guid>
      <dc:creator>andersonmj2</dc:creator>
      <dc:date>2023-01-04T15:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: Alphanumeric sorting rules in JMP17</title>
      <link>https://community.jmp.com/t5/Discussions/Alphanumeric-sorting-rules-in-JMP17/m-p/612826#M81308</link>
      <description>&lt;P&gt;I have to respectfully disagree with the JMP choice of sorting.&amp;nbsp; I know of no other software that does it this way and it is not at all obvious.&lt;/P&gt;&lt;P&gt;If the Data Type is specified as Character then it should be treated as such and ordered by accepted rules. Maybe JMP needs a new category Char/Num.&lt;/P&gt;&lt;P&gt;My set of data below is sorted by JMP as&lt;/P&gt;&lt;P&gt;0CNFB&lt;BR /&gt;0ERRB&lt;BR /&gt;01JAB&lt;BR /&gt;013BB&lt;BR /&gt;2X0UB&lt;BR /&gt;11DBB&lt;BR /&gt;13ZYB&lt;BR /&gt;17TSB&lt;BR /&gt;156QB&lt;BR /&gt;1474B&lt;/P&gt;&lt;P&gt;I understand the rules as explained here but who would think this is how these should be ordered?&amp;nbsp; This is not the way to order a character field.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 21:23:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Alphanumeric-sorting-rules-in-JMP17/m-p/612826#M81308</guid>
      <dc:creator>pcarroll1</dc:creator>
      <dc:date>2023-03-15T21:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: Alphanumeric sorting rules in JMP17</title>
      <link>https://community.jmp.com/t5/Discussions/Alphanumeric-sorting-rules-in-JMP17/m-p/612924#M81316</link>
      <description>&lt;P&gt;Your preferences are set to Numerical Ordering.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Go to&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;File=&amp;gt;Preferences=&amp;gt;Tables&lt;/P&gt;
&lt;P&gt;and unselect the checkbox for Numerical Ordering&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1678941227916.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/51142i91F88ADD70351294/image-size/medium?v=v2&amp;amp;px=400" role="button" title="txnelson_0-1678941227916.png" alt="txnelson_0-1678941227916.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 04:33:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Alphanumeric-sorting-rules-in-JMP17/m-p/612924#M81316</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-03-16T04:33:59Z</dc:date>
    </item>
  </channel>
</rss>

