<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://m204wiki.rocketsoftware.com/index.php?action=history&amp;feed=atom&amp;title=Sort_%28Arraylist_subroutine%29</id>
	<title>Sort (Arraylist subroutine) - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://m204wiki.rocketsoftware.com/index.php?action=history&amp;feed=atom&amp;title=Sort_%28Arraylist_subroutine%29"/>
	<link rel="alternate" type="text/html" href="https://m204wiki.rocketsoftware.com/index.php?title=Sort_(Arraylist_subroutine)&amp;action=history"/>
	<updated>2026-04-21T20:34:00Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://m204wiki.rocketsoftware.com/index.php?title=Sort_(Arraylist_subroutine)&amp;diff=14876&amp;oldid=prev</id>
		<title>JAL2: /* Usage notes */</title>
		<link rel="alternate" type="text/html" href="https://m204wiki.rocketsoftware.com/index.php?title=Sort_(Arraylist_subroutine)&amp;diff=14876&amp;oldid=prev"/>
		<updated>2012-08-13T19:37:07Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Usage notes&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 19:37, 13 August 2012&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l18&quot;&gt;Line 18:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 18:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Usage notes==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Usage notes==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;ul&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;ul&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;li&amp;gt;If the function applied by &amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; returns &amp;lt;var&amp;gt;String&amp;lt;/var&amp;gt; or &amp;lt;var&amp;gt;Unicode&amp;lt;/var&amp;gt; values, &amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; uses the collating sequence of EBCDIC or Unicode, respectively, to determine the ascending or descending alphabetic order of the associated &amp;lt;var class=&quot;term&quot;&amp;gt;al&amp;lt;/var&amp;gt; items. If the function&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/var&amp;gt; &lt;/del&gt;returns a numeric type, numeric comparisons are used.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;li&amp;gt;If the function applied by &amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; returns &amp;lt;var&amp;gt;String&amp;lt;/var&amp;gt; or &amp;lt;var&amp;gt;Unicode&amp;lt;/var&amp;gt; values, &amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; uses the collating sequence of EBCDIC or Unicode, respectively, to determine the ascending or descending alphabetic order of the associated &amp;lt;var class=&quot;term&quot;&amp;gt;al&amp;lt;/var&amp;gt; items. If the function returns a numeric type, numeric comparisons are used.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;li&amp;gt;If two or more &amp;lt;var class=&amp;quot;term&amp;quot;&amp;gt;al&amp;lt;/var&amp;gt; items have equal values after all sort criteria are applied, &amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; places them in the same order in which they appear in the input &amp;lt;var class=&amp;quot;term&amp;quot;&amp;gt;al&amp;lt;/var&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;li&amp;gt;If two or more &amp;lt;var class=&amp;quot;term&amp;quot;&amp;gt;al&amp;lt;/var&amp;gt; items have equal values after all sort criteria are applied, &amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; places them in the same order in which they appear in the input &amp;lt;var class=&amp;quot;term&amp;quot;&amp;gt;al&amp;lt;/var&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>JAL2</name></author>
	</entry>
	<entry>
		<id>https://m204wiki.rocketsoftware.com/index.php?title=Sort_(Arraylist_subroutine)&amp;diff=14875&amp;oldid=prev</id>
		<title>JAL2: /* Usage notes */</title>
		<link rel="alternate" type="text/html" href="https://m204wiki.rocketsoftware.com/index.php?title=Sort_(Arraylist_subroutine)&amp;diff=14875&amp;oldid=prev"/>
		<updated>2012-08-13T19:36:00Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Usage notes&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 19:36, 13 August 2012&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l18&quot;&gt;Line 18:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 18:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Usage notes==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Usage notes==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;ul&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;ul&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;li&amp;gt;If the function applied by &amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; returns &amp;lt;var&amp;gt;String&amp;lt;/var&amp;gt; or &amp;lt;var&amp;gt;Unicode&amp;lt;/var&amp;gt; values, &amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; uses the collating sequence of EBCDIC or Unicode, respectively, to determine the ascending or descending alphabetic order of the associated &amp;lt;var class=&quot;term&quot;&amp;gt;al&amp;lt;/var&amp;gt; items.  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;li&amp;gt;If the function applied by &amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; returns &amp;lt;var&amp;gt;String&amp;lt;/var&amp;gt; or &amp;lt;var&amp;gt;Unicode&amp;lt;/var&amp;gt; values, &amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; uses the collating sequence of EBCDIC or Unicode, respectively, to determine the ascending or descending alphabetic order of the associated &amp;lt;var class=&quot;term&quot;&amp;gt;al&amp;lt;/var&amp;gt; items&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;. If the function&amp;lt;/var&amp;gt; returns a numeric type, numeric comparisons are used&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;li&amp;gt;If two or more &amp;lt;var class=&amp;quot;term&amp;quot;&amp;gt;al&amp;lt;/var&amp;gt; items have equal values after all sort criteria are applied, &amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; places them in the same order in which they appear in the input &amp;lt;var class=&amp;quot;term&amp;quot;&amp;gt;al&amp;lt;/var&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;li&amp;gt;If two or more &amp;lt;var class=&amp;quot;term&amp;quot;&amp;gt;al&amp;lt;/var&amp;gt; items have equal values after all sort criteria are applied, &amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; places them in the same order in which they appear in the input &amp;lt;var class=&amp;quot;term&amp;quot;&amp;gt;al&amp;lt;/var&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>JAL2</name></author>
	</entry>
	<entry>
		<id>https://m204wiki.rocketsoftware.com/index.php?title=Sort_(Arraylist_subroutine)&amp;diff=14874&amp;oldid=prev</id>
		<title>JAL2: /* Usage notes */</title>
		<link rel="alternate" type="text/html" href="https://m204wiki.rocketsoftware.com/index.php?title=Sort_(Arraylist_subroutine)&amp;diff=14874&amp;oldid=prev"/>
		<updated>2012-08-09T23:16:02Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Usage notes&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 23:16, 9 August 2012&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l18&quot;&gt;Line 18:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 18:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Usage notes==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Usage notes==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;ul&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;ul&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;li&amp;gt;If the function applied by &amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; returns &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;string &lt;/del&gt;values, &amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; uses the &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;decimal-equivalent value &lt;/del&gt;of &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;the character bytes &lt;/del&gt;to determine the ascending or descending alphabetic order of the associated &amp;lt;var class=&quot;term&quot;&amp;gt;al&amp;lt;/var&amp;gt; items. &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; Lowercase letters are first ranked alphabetically, then uppercase letters, also ranked alphabetically, followed by the numbers; ie: &amp;lt;code&amp;gt;&#039;a&#039;..&#039;z&#039;,&#039;A&#039;..&#039;Z&#039;,0..9&amp;lt;/code&amp;gt;.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;li&amp;gt;If the function applied by &amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; returns &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;var&amp;gt;String&amp;lt;/var&amp;gt; or &amp;lt;var&amp;gt;Unicode&amp;lt;/var&amp;gt; &lt;/ins&gt;values, &amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; uses the &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;collating sequence &lt;/ins&gt;of &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;EBCDIC or Unicode, respectively, &lt;/ins&gt;to determine the ascending or descending alphabetic order of the associated &amp;lt;var class=&quot;term&quot;&amp;gt;al&amp;lt;/var&amp;gt; items.  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;li&amp;gt;If two or more &amp;lt;var class=&amp;quot;term&amp;quot;&amp;gt;al&amp;lt;/var&amp;gt; items have equal values after all sort criteria are applied, &amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; places them in the same order in which they appear in the input &amp;lt;var class=&amp;quot;term&amp;quot;&amp;gt;al&amp;lt;/var&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;li&amp;gt;If two or more &amp;lt;var class=&amp;quot;term&amp;quot;&amp;gt;al&amp;lt;/var&amp;gt; items have equal values after all sort criteria are applied, &amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; places them in the same order in which they appear in the input &amp;lt;var class=&amp;quot;term&amp;quot;&amp;gt;al&amp;lt;/var&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;li&amp;gt;The function in the parameter for &amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; is a method value, not a &amp;lt;var class=&amp;quot;product&amp;quot;&amp;gt;User Language&amp;lt;/var&amp;gt; expression.  That is, you cannot provide a function that itself has an argument (say, &amp;lt;code&amp;gt;&amp;lt;var&amp;gt;[[ToIntegerPower and ToPower (Float functions)|ToIntegerPower]]&amp;lt;/var&amp;gt;(2)&amp;lt;/code&amp;gt;) as the &amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; parameter.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;li&amp;gt;The function in the parameter for &amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; is a method value, not a &amp;lt;var class=&amp;quot;product&amp;quot;&amp;gt;User Language&amp;lt;/var&amp;gt; expression.  That is, you cannot provide a function that itself has an argument (say, &amp;lt;code&amp;gt;&amp;lt;var&amp;gt;[[ToIntegerPower and ToPower (Float functions)|ToIntegerPower]]&amp;lt;/var&amp;gt;(2)&amp;lt;/code&amp;gt;) as the &amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; parameter.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;li&amp;gt;As of &amp;lt;var class=&amp;quot;product&amp;quot;&amp;gt;[[Sirius Mods|Sirius Mods]]&amp;lt;/var&amp;gt; Version 7.6, the default &amp;lt;var class=&amp;quot;term&amp;quot;&amp;gt;sortOrder&amp;lt;/var&amp;gt; argument is the &amp;lt;var&amp;gt;sortOrder&amp;lt;/var&amp;gt; &amp;lt;code&amp;gt;Ascending(This)&amp;lt;/code&amp;gt;, where &amp;lt;var&amp;gt;This&amp;lt;/var&amp;gt; is the identity function value described further in [[Collections#Using the This function as the Maximum parameter|&amp;quot;Using the This function as the Maximum parameter&amp;quot;]].  Therefore, &amp;lt;code&amp;gt;&amp;lt;var class=&amp;quot;term&amp;quot;&amp;gt;al&amp;lt;/var&amp;gt;:sort(ascending(this))&amp;lt;/code&amp;gt; can be specified simply as &amp;lt;code&amp;gt;&amp;lt;var class=&amp;quot;term&amp;quot;&amp;gt;al&amp;lt;/var&amp;gt;:sort&amp;lt;/code&amp;gt;.  See the [[SortNew (Arraylist function)#Examples|&amp;quot;SortNew example&amp;quot;]].&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;li&amp;gt;As of &amp;lt;var class=&amp;quot;product&amp;quot;&amp;gt;[[Sirius Mods|Sirius Mods]]&amp;lt;/var&amp;gt; Version 7.6, the default &amp;lt;var class=&amp;quot;term&amp;quot;&amp;gt;sortOrder&amp;lt;/var&amp;gt; argument is the &amp;lt;var&amp;gt;sortOrder&amp;lt;/var&amp;gt; &amp;lt;code&amp;gt;Ascending(This)&amp;lt;/code&amp;gt;, where &amp;lt;var&amp;gt;This&amp;lt;/var&amp;gt; is the identity function value described further in [[Collections#Using the This function as the Maximum parameter|&amp;quot;Using the This function as the Maximum parameter&amp;quot;]].  Therefore, &amp;lt;code&amp;gt;&amp;lt;var class=&amp;quot;term&amp;quot;&amp;gt;al&amp;lt;/var&amp;gt;:sort(ascending(this))&amp;lt;/code&amp;gt; can be specified simply as &amp;lt;code&amp;gt;&amp;lt;var class=&amp;quot;term&amp;quot;&amp;gt;al&amp;lt;/var&amp;gt;:sort&amp;lt;/code&amp;gt;.  See the [[SortNew (Arraylist function)#Examples|&amp;quot;SortNew example&amp;quot;]].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  &amp;lt;li&amp;gt;&amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; is available in &amp;lt;var class=&quot;product&quot;&amp;gt;[[Sirius Mods|Sirius Mods]]&amp;lt;/var&amp;gt; Version 7.3 and later.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;li&amp;gt;&amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; is available in &amp;lt;var class=&quot;product&quot;&amp;gt;[[Sirius Mods|Sirius Mods]]&amp;lt;/var&amp;gt; Version 7.3 and later.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/ul&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/ul&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>JAL2</name></author>
	</entry>
	<entry>
		<id>https://m204wiki.rocketsoftware.com/index.php?title=Sort_(Arraylist_subroutine)&amp;diff=14873&amp;oldid=prev</id>
		<title>JAL2: /* Usage notes */</title>
		<link rel="alternate" type="text/html" href="https://m204wiki.rocketsoftware.com/index.php?title=Sort_(Arraylist_subroutine)&amp;diff=14873&amp;oldid=prev"/>
		<updated>2012-03-19T18:52:55Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Usage notes&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:52, 19 March 2012&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l18&quot;&gt;Line 18:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 18:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Usage notes==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Usage notes==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;ul&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;ul&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;li&amp;gt;If the function applied by &amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; returns string values, &amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; uses the decimal-equivalent value of the character bytes to determine the ascending or descending alphabetic order of the associated &amp;lt;var class=&quot;term&quot;&amp;gt;al&amp;lt;/var&amp;gt; items.  Lowercase letters are first ranked alphabetically, then &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;upper case &lt;/del&gt;letters, also ranked alphabetically, followed by the numbers; ie: &amp;lt;code&amp;gt;&#039;a&#039;..&#039;z&#039;,&#039;A&#039;..&#039;Z&#039;,0..9&amp;lt;/code&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;li&amp;gt;If the function applied by &amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; returns string values, &amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; uses the decimal-equivalent value of the character bytes to determine the ascending or descending alphabetic order of the associated &amp;lt;var class=&quot;term&quot;&amp;gt;al&amp;lt;/var&amp;gt; items.  Lowercase letters are first ranked alphabetically, then &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;uppercase &lt;/ins&gt;letters, also ranked alphabetically, followed by the numbers; ie: &amp;lt;code&amp;gt;&#039;a&#039;..&#039;z&#039;,&#039;A&#039;..&#039;Z&#039;,0..9&amp;lt;/code&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;li&amp;gt;If two or more &amp;lt;var class=&amp;quot;term&amp;quot;&amp;gt;al&amp;lt;/var&amp;gt; items have equal values after all sort criteria are applied, &amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; places them in the same order in which they appear in the input &amp;lt;var class=&amp;quot;term&amp;quot;&amp;gt;al&amp;lt;/var&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;li&amp;gt;If two or more &amp;lt;var class=&amp;quot;term&amp;quot;&amp;gt;al&amp;lt;/var&amp;gt; items have equal values after all sort criteria are applied, &amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; places them in the same order in which they appear in the input &amp;lt;var class=&amp;quot;term&amp;quot;&amp;gt;al&amp;lt;/var&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;li&amp;gt;The function in the parameter for &amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; is a method value, not a &amp;lt;var class=&amp;quot;product&amp;quot;&amp;gt;User Language&amp;lt;/var&amp;gt; expression.  That is, you cannot provide a function that itself has an argument (say, &amp;lt;code&amp;gt;&amp;lt;var&amp;gt;[[ToIntegerPower and ToPower (Float functions)|ToIntegerPower]]&amp;lt;/var&amp;gt;(2)&amp;lt;/code&amp;gt;) as the &amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; parameter.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;li&amp;gt;The function in the parameter for &amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; is a method value, not a &amp;lt;var class=&amp;quot;product&amp;quot;&amp;gt;User Language&amp;lt;/var&amp;gt; expression.  That is, you cannot provide a function that itself has an argument (say, &amp;lt;code&amp;gt;&amp;lt;var&amp;gt;[[ToIntegerPower and ToPower (Float functions)|ToIntegerPower]]&amp;lt;/var&amp;gt;(2)&amp;lt;/code&amp;gt;) as the &amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; parameter.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l24&quot;&gt;Line 24:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 24:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  &amp;lt;li&amp;gt;&amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; is available in &amp;lt;var class=&amp;quot;product&amp;quot;&amp;gt;[[Sirius Mods|Sirius Mods]]&amp;lt;/var&amp;gt; Version 7.3 and later.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  &amp;lt;li&amp;gt;&amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; is available in &amp;lt;var class=&amp;quot;product&amp;quot;&amp;gt;[[Sirius Mods|Sirius Mods]]&amp;lt;/var&amp;gt; Version 7.3 and later.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/ul&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/ul&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Examples==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Examples==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;For examples of the &amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; method, see [[Collections#Finding collection maxima and minima, and sorting|&amp;quot;Finding collection maxima and minima, and sorting&amp;quot;]].&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;For examples of the &amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; method, see [[Collections#Finding collection maxima and minima, and sorting|&amp;quot;Finding collection maxima and minima, and sorting&amp;quot;]].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>JAL2</name></author>
	</entry>
	<entry>
		<id>https://m204wiki.rocketsoftware.com/index.php?title=Sort_(Arraylist_subroutine)&amp;diff=14872&amp;oldid=prev</id>
		<title>JALWiccan: 1 revision</title>
		<link rel="alternate" type="text/html" href="https://m204wiki.rocketsoftware.com/index.php?title=Sort_(Arraylist_subroutine)&amp;diff=14872&amp;oldid=prev"/>
		<updated>2012-03-19T18:44:11Z</updated>

		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:44, 19 March 2012&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>JALWiccan</name></author>
	</entry>
	<entry>
		<id>https://m204wiki.rocketsoftware.com/index.php?title=Sort_(Arraylist_subroutine)&amp;diff=14871&amp;oldid=prev</id>
		<title>JAL2 at 18:44, 19 March 2012</title>
		<link rel="alternate" type="text/html" href="https://m204wiki.rocketsoftware.com/index.php?title=Sort_(Arraylist_subroutine)&amp;diff=14871&amp;oldid=prev"/>
		<updated>2012-03-19T18:44:10Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:44, 19 March 2012&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l20&quot;&gt;Line 20:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 20:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;li&amp;gt;If the function applied by &amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; returns string values, &amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; uses the decimal-equivalent value of the character bytes to determine the ascending or descending alphabetic order of the associated &amp;lt;var class=&amp;quot;term&amp;quot;&amp;gt;al&amp;lt;/var&amp;gt; items.  Lowercase letters are first ranked alphabetically, then upper case letters, also ranked alphabetically, followed by the numbers; ie: &amp;lt;code&amp;gt;&amp;#039;a&amp;#039;..&amp;#039;z&amp;#039;,&amp;#039;A&amp;#039;..&amp;#039;Z&amp;#039;,0..9&amp;lt;/code&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;li&amp;gt;If the function applied by &amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; returns string values, &amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; uses the decimal-equivalent value of the character bytes to determine the ascending or descending alphabetic order of the associated &amp;lt;var class=&amp;quot;term&amp;quot;&amp;gt;al&amp;lt;/var&amp;gt; items.  Lowercase letters are first ranked alphabetically, then upper case letters, also ranked alphabetically, followed by the numbers; ie: &amp;lt;code&amp;gt;&amp;#039;a&amp;#039;..&amp;#039;z&amp;#039;,&amp;#039;A&amp;#039;..&amp;#039;Z&amp;#039;,0..9&amp;lt;/code&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;li&amp;gt;If two or more &amp;lt;var class=&amp;quot;term&amp;quot;&amp;gt;al&amp;lt;/var&amp;gt; items have equal values after all sort criteria are applied, &amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; places them in the same order in which they appear in the input &amp;lt;var class=&amp;quot;term&amp;quot;&amp;gt;al&amp;lt;/var&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;li&amp;gt;If two or more &amp;lt;var class=&amp;quot;term&amp;quot;&amp;gt;al&amp;lt;/var&amp;gt; items have equal values after all sort criteria are applied, &amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; places them in the same order in which they appear in the input &amp;lt;var class=&amp;quot;term&amp;quot;&amp;gt;al&amp;lt;/var&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;li&amp;gt;The function in the parameter for &amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; is a method value, not a User Language expression.  That is, you cannot provide a function that itself has an argument (say, &amp;lt;code&amp;gt;&amp;lt;var&amp;gt;[[ToIntegerPower and ToPower (Float functions)|ToIntegerPower]]&amp;lt;/var&amp;gt;(2)&amp;lt;/code&amp;gt;) as the &amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; parameter.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;li&amp;gt;The function in the parameter for &amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; is a method value, not a &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;var class=&quot;product&quot;&amp;gt;&lt;/ins&gt;User Language&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/var&amp;gt; &lt;/ins&gt;expression.  That is, you cannot provide a function that itself has an argument (say, &amp;lt;code&amp;gt;&amp;lt;var&amp;gt;[[ToIntegerPower and ToPower (Float functions)|ToIntegerPower]]&amp;lt;/var&amp;gt;(2)&amp;lt;/code&amp;gt;) as the &amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; parameter.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;li&amp;gt;As of &amp;lt;var class=&amp;quot;product&amp;quot;&amp;gt;[[Sirius Mods|Sirius Mods]]&amp;lt;/var&amp;gt; Version 7.6, the default &amp;lt;var class=&amp;quot;term&amp;quot;&amp;gt;sortOrder&amp;lt;/var&amp;gt; argument is the &amp;lt;var&amp;gt;sortOrder&amp;lt;/var&amp;gt; &amp;lt;code&amp;gt;Ascending(This)&amp;lt;/code&amp;gt;, where &amp;lt;var&amp;gt;This&amp;lt;/var&amp;gt; is the identity function value described further in [[Collections#Using the This function as the Maximum parameter|&amp;quot;Using the This function as the Maximum parameter&amp;quot;]].  Therefore, &amp;lt;code&amp;gt;&amp;lt;var class=&amp;quot;term&amp;quot;&amp;gt;al&amp;lt;/var&amp;gt;:sort(ascending(this))&amp;lt;/code&amp;gt; can be specified simply as &amp;lt;code&amp;gt;&amp;lt;var class=&amp;quot;term&amp;quot;&amp;gt;al&amp;lt;/var&amp;gt;:sort&amp;lt;/code&amp;gt;.  See the [[SortNew (Arraylist function)#Examples|&amp;quot;SortNew example&amp;quot;]].&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;li&amp;gt;As of &amp;lt;var class=&amp;quot;product&amp;quot;&amp;gt;[[Sirius Mods|Sirius Mods]]&amp;lt;/var&amp;gt; Version 7.6, the default &amp;lt;var class=&amp;quot;term&amp;quot;&amp;gt;sortOrder&amp;lt;/var&amp;gt; argument is the &amp;lt;var&amp;gt;sortOrder&amp;lt;/var&amp;gt; &amp;lt;code&amp;gt;Ascending(This)&amp;lt;/code&amp;gt;, where &amp;lt;var&amp;gt;This&amp;lt;/var&amp;gt; is the identity function value described further in [[Collections#Using the This function as the Maximum parameter|&amp;quot;Using the This function as the Maximum parameter&amp;quot;]].  Therefore, &amp;lt;code&amp;gt;&amp;lt;var class=&amp;quot;term&amp;quot;&amp;gt;al&amp;lt;/var&amp;gt;:sort(ascending(this))&amp;lt;/code&amp;gt; can be specified simply as &amp;lt;code&amp;gt;&amp;lt;var class=&amp;quot;term&amp;quot;&amp;gt;al&amp;lt;/var&amp;gt;:sort&amp;lt;/code&amp;gt;.  See the [[SortNew (Arraylist function)#Examples|&amp;quot;SortNew example&amp;quot;]].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  &amp;lt;li&amp;gt;&amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; is available in &amp;lt;var class=&amp;quot;product&amp;quot;&amp;gt;[[Sirius Mods|Sirius Mods]]&amp;lt;/var&amp;gt; Version 7.3 and later.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  &amp;lt;li&amp;gt;&amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; is available in &amp;lt;var class=&amp;quot;product&amp;quot;&amp;gt;[[Sirius Mods|Sirius Mods]]&amp;lt;/var&amp;gt; Version 7.3 and later.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>JAL2</name></author>
	</entry>
	<entry>
		<id>https://m204wiki.rocketsoftware.com/index.php?title=Sort_(Arraylist_subroutine)&amp;diff=14870&amp;oldid=prev</id>
		<title>JAL2 at 22:16, 30 November 2011</title>
		<link rel="alternate" type="text/html" href="https://m204wiki.rocketsoftware.com/index.php?title=Sort_(Arraylist_subroutine)&amp;diff=14870&amp;oldid=prev"/>
		<updated>2011-11-30T22:16:30Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 22:16, 30 November 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Template:Arraylist:Sort subtitle}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Template:Arraylist:Sort subtitle}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; sorts the method object &amp;lt;var&amp;gt;Arraylist&amp;lt;/var&amp;gt; replacing it with the sorted result. The sort is based on one or more &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;var&amp;gt;[[SortOrder_class|&lt;/del&gt;sort criteria&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;]]&amp;lt;/var&amp;gt; &lt;/del&gt;which &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;consist &lt;/del&gt;of a sorting direction (ascending or descending) paired with a sort key (a function that gets applied to &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;each &lt;/del&gt;&amp;lt;var&amp;gt;Arraylist&amp;lt;/var&amp;gt; item). &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; Each &lt;/del&gt;sort &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;criterion pair is &lt;/del&gt;a &amp;lt;var&amp;gt;[[SortOrder class&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;#SortOrder object variable declaration syntax&lt;/del&gt;|SortOrder &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;object&lt;/del&gt;]]&amp;lt;/var&amp;gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, and multiple pairs are a &amp;lt;var&amp;gt;SortOrder&amp;lt;/var&amp;gt; collection&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; sorts the method object &amp;lt;var&amp;gt;Arraylist&amp;lt;/var&amp;gt; replacing it with the sorted result. The sort is based on one or more sort criteria&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, each of &lt;/ins&gt;which &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;consists &lt;/ins&gt;of a sorting direction (ascending or descending) paired with a sort key (a function that gets applied to &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;an &lt;/ins&gt;&amp;lt;var&amp;gt;Arraylist&amp;lt;/var&amp;gt; item). &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;The &lt;/ins&gt;sort &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;criteria pairs are passed to &amp;lt;var&amp;gt;SortNew&amp;lt;/var&amp;gt; as &lt;/ins&gt;a &amp;lt;var&amp;gt;[[SortOrder class|SortOrder]]&amp;lt;/var&amp;gt; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;argument&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;p&amp;gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;The &lt;/del&gt;sort key function &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;that gets &lt;/del&gt;applied to &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;each &lt;/del&gt;&amp;lt;var&amp;gt;Arraylist&amp;lt;/var&amp;gt; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;item (which you identify in the &amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; parameter&lt;/del&gt;) must operate on the item type and return &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;a User Language &lt;/del&gt;&amp;lt;var&amp;gt;[[Intrinsic classes|intrinsic]]&amp;lt;/var&amp;gt; datatype (&amp;lt;var&amp;gt;Float&amp;lt;/var&amp;gt;, &amp;lt;var&amp;gt;String&amp;lt;/var&amp;gt;, &amp;lt;var&amp;gt;Longstring&amp;lt;/var&amp;gt;, or &amp;lt;var&amp;gt;Unicode&amp;lt;/var&amp;gt;) value.  The values returned by the function are sorted into ascending or descending order to determine the position of their associated item in the &amp;lt;var&amp;gt;Arraylist&amp;lt;/var&amp;gt;.&amp;lt;/p&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;p&amp;gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Each &lt;/ins&gt;sort key function &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(which is &lt;/ins&gt;applied to &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;the &lt;/ins&gt;&amp;lt;var&amp;gt;Arraylist&amp;lt;/var&amp;gt; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;items&lt;/ins&gt;) must operate on the item type and return &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;an &lt;/ins&gt;&amp;lt;var&amp;gt;[[Intrinsic classes|intrinsic]]&amp;lt;/var&amp;gt; datatype (&amp;lt;var&amp;gt;Float&amp;lt;/var&amp;gt;, &amp;lt;var&amp;gt;String&amp;lt;/var&amp;gt;, &amp;lt;var&amp;gt;Longstring&amp;lt;/var&amp;gt;, or &amp;lt;var&amp;gt;Unicode&amp;lt;/var&amp;gt;) value.  The values returned by the function are sorted into ascending or descending order to determine the position of their associated item in the &amp;lt;var&amp;gt;Arraylist&amp;lt;/var&amp;gt;.&amp;lt;/p&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Syntax==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Syntax==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>JAL2</name></author>
	</entry>
	<entry>
		<id>https://m204wiki.rocketsoftware.com/index.php?title=Sort_(Arraylist_subroutine)&amp;diff=14869&amp;oldid=prev</id>
		<title>JALWiccan: 1 revision</title>
		<link rel="alternate" type="text/html" href="https://m204wiki.rocketsoftware.com/index.php?title=Sort_(Arraylist_subroutine)&amp;diff=14869&amp;oldid=prev"/>
		<updated>2011-05-04T17:45:56Z</updated>

		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 17:45, 4 May 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>JALWiccan</name></author>
	</entry>
	<entry>
		<id>https://m204wiki.rocketsoftware.com/index.php?title=Sort_(Arraylist_subroutine)&amp;diff=14868&amp;oldid=prev</id>
		<title>Dme at 17:45, 4 May 2011</title>
		<link rel="alternate" type="text/html" href="https://m204wiki.rocketsoftware.com/index.php?title=Sort_(Arraylist_subroutine)&amp;diff=14868&amp;oldid=prev"/>
		<updated>2011-05-04T17:45:54Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 17:45, 4 May 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l20&quot;&gt;Line 20:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 20:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;li&amp;gt;If two or more &amp;lt;var class=&amp;quot;term&amp;quot;&amp;gt;al&amp;lt;/var&amp;gt; items have equal values after all sort criteria are applied, &amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; places them in the same order in which they appear in the input &amp;lt;var class=&amp;quot;term&amp;quot;&amp;gt;al&amp;lt;/var&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;li&amp;gt;If two or more &amp;lt;var class=&amp;quot;term&amp;quot;&amp;gt;al&amp;lt;/var&amp;gt; items have equal values after all sort criteria are applied, &amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; places them in the same order in which they appear in the input &amp;lt;var class=&amp;quot;term&amp;quot;&amp;gt;al&amp;lt;/var&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;li&amp;gt;The function in the parameter for &amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; is a method value, not a User Language expression.  That is, you cannot provide a function that itself has an argument (say, &amp;lt;code&amp;gt;&amp;lt;var&amp;gt;[[ToIntegerPower and ToPower (Float functions)|ToIntegerPower]]&amp;lt;/var&amp;gt;(2)&amp;lt;/code&amp;gt;) as the &amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; parameter.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;li&amp;gt;The function in the parameter for &amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; is a method value, not a User Language expression.  That is, you cannot provide a function that itself has an argument (say, &amp;lt;code&amp;gt;&amp;lt;var&amp;gt;[[ToIntegerPower and ToPower (Float functions)|ToIntegerPower]]&amp;lt;/var&amp;gt;(2)&amp;lt;/code&amp;gt;) as the &amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; parameter.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;li&amp;gt;As of &amp;lt;var class=&quot;product&quot;&amp;gt;[[Sirius Mods|&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&quot;&lt;/del&gt;Sirius Mods&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&quot;&lt;/del&gt;]]&amp;lt;/var&amp;gt; Version 7.6, the default &amp;lt;var class=&quot;term&quot;&amp;gt;sortOrder&amp;lt;/var&amp;gt; argument is the &amp;lt;var&amp;gt;sortOrder&amp;lt;/var&amp;gt; &amp;lt;code&amp;gt;Ascending(This)&amp;lt;/code&amp;gt;, where &amp;lt;var&amp;gt;This&amp;lt;/var&amp;gt; is the identity function value described further in [[Collections#Using the This function as the Maximum parameter|&quot;Using the This function as the Maximum parameter&quot;]].  Therefore, &amp;lt;code&amp;gt;&amp;lt;var class=&quot;term&quot;&amp;gt;al&amp;lt;/var&amp;gt;:sort(ascending(this))&amp;lt;/code&amp;gt; can be specified simply as &amp;lt;code&amp;gt;&amp;lt;var class=&quot;term&quot;&amp;gt;al&amp;lt;/var&amp;gt;:sort&amp;lt;/code&amp;gt;.  See the [[SortNew (Arraylist function)#Examples|&quot;SortNew example&quot;]].&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;li&amp;gt;As of &amp;lt;var class=&quot;product&quot;&amp;gt;[[Sirius Mods|Sirius Mods]]&amp;lt;/var&amp;gt; Version 7.6, the default &amp;lt;var class=&quot;term&quot;&amp;gt;sortOrder&amp;lt;/var&amp;gt; argument is the &amp;lt;var&amp;gt;sortOrder&amp;lt;/var&amp;gt; &amp;lt;code&amp;gt;Ascending(This)&amp;lt;/code&amp;gt;, where &amp;lt;var&amp;gt;This&amp;lt;/var&amp;gt; is the identity function value described further in [[Collections#Using the This function as the Maximum parameter|&quot;Using the This function as the Maximum parameter&quot;]].  Therefore, &amp;lt;code&amp;gt;&amp;lt;var class=&quot;term&quot;&amp;gt;al&amp;lt;/var&amp;gt;:sort(ascending(this))&amp;lt;/code&amp;gt; can be specified simply as &amp;lt;code&amp;gt;&amp;lt;var class=&quot;term&quot;&amp;gt;al&amp;lt;/var&amp;gt;:sort&amp;lt;/code&amp;gt;.  See the [[SortNew (Arraylist function)#Examples|&quot;SortNew example&quot;]].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  &amp;lt;li&amp;gt;&amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; is available in &amp;lt;var class=&quot;product&quot;&amp;gt;[[Sirius Mods|&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&quot;&lt;/del&gt;Sirius Mods&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&quot;&lt;/del&gt;]]&amp;lt;/var&amp;gt; Version 7.3 and later.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  &amp;lt;li&amp;gt;&amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; is available in &amp;lt;var class=&quot;product&quot;&amp;gt;[[Sirius Mods|Sirius Mods]]&amp;lt;/var&amp;gt; Version 7.3 and later.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/ul&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/ul&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Dme</name></author>
	</entry>
	<entry>
		<id>https://m204wiki.rocketsoftware.com/index.php?title=Sort_(Arraylist_subroutine)&amp;diff=14867&amp;oldid=prev</id>
		<title>Dme at 17:48, 3 May 2011</title>
		<link rel="alternate" type="text/html" href="https://m204wiki.rocketsoftware.com/index.php?title=Sort_(Arraylist_subroutine)&amp;diff=14867&amp;oldid=prev"/>
		<updated>2011-05-03T17:48:47Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 17:48, 3 May 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l20&quot;&gt;Line 20:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 20:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;li&amp;gt;If two or more &amp;lt;var class=&amp;quot;term&amp;quot;&amp;gt;al&amp;lt;/var&amp;gt; items have equal values after all sort criteria are applied, &amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; places them in the same order in which they appear in the input &amp;lt;var class=&amp;quot;term&amp;quot;&amp;gt;al&amp;lt;/var&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;li&amp;gt;If two or more &amp;lt;var class=&amp;quot;term&amp;quot;&amp;gt;al&amp;lt;/var&amp;gt; items have equal values after all sort criteria are applied, &amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; places them in the same order in which they appear in the input &amp;lt;var class=&amp;quot;term&amp;quot;&amp;gt;al&amp;lt;/var&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;li&amp;gt;The function in the parameter for &amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; is a method value, not a User Language expression.  That is, you cannot provide a function that itself has an argument (say, &amp;lt;code&amp;gt;&amp;lt;var&amp;gt;[[ToIntegerPower and ToPower (Float functions)|ToIntegerPower]]&amp;lt;/var&amp;gt;(2)&amp;lt;/code&amp;gt;) as the &amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; parameter.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;li&amp;gt;The function in the parameter for &amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; is a method value, not a User Language expression.  That is, you cannot provide a function that itself has an argument (say, &amp;lt;code&amp;gt;&amp;lt;var&amp;gt;[[ToIntegerPower and ToPower (Float functions)|ToIntegerPower]]&amp;lt;/var&amp;gt;(2)&amp;lt;/code&amp;gt;) as the &amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; parameter.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;li&amp;gt;As of &amp;lt;var class=&quot;product&quot;&amp;gt;[[Sirius Mods|&quot;Sirius Mods&quot;]]&amp;lt;/var&amp;gt; Version 7.6, the default &amp;lt;var class=&quot;term&quot;&amp;gt;sortOrder&amp;lt;/var&amp;gt; argument is the &amp;lt;var&amp;gt;sortOrder&amp;lt;/var&amp;gt; &amp;lt;code&amp;gt;Ascending(This)&amp;lt;/code&amp;gt;, where &amp;lt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;code&lt;/del&gt;&amp;gt;This&amp;lt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;code&lt;/del&gt;&amp;gt; is the identity function described further in [[Collections#Using the This function as the Maximum parameter|&quot;Using the This function as the Maximum parameter&quot;]].  Therefore, &amp;lt;code&amp;gt;&amp;lt;var class=&quot;term&quot;&amp;gt;al&amp;lt;/var&amp;gt;:sort(ascending(this))&amp;lt;/code&amp;gt; can be specified simply as &amp;lt;code&amp;gt;&amp;lt;var class=&quot;term&quot;&amp;gt;al&amp;lt;/var&amp;gt;:sort&amp;lt;/code&amp;gt;.  See [[SortNew (Arraylist function)#Examples|&quot;SortNew example&quot;]].&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;li&amp;gt;As of &amp;lt;var class=&quot;product&quot;&amp;gt;[[Sirius Mods|&quot;Sirius Mods&quot;]]&amp;lt;/var&amp;gt; Version 7.6, the default &amp;lt;var class=&quot;term&quot;&amp;gt;sortOrder&amp;lt;/var&amp;gt; argument is the &amp;lt;var&amp;gt;sortOrder&amp;lt;/var&amp;gt; &amp;lt;code&amp;gt;Ascending(This)&amp;lt;/code&amp;gt;, where &amp;lt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;var&lt;/ins&gt;&amp;gt;This&amp;lt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;var&lt;/ins&gt;&amp;gt; is the identity function &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;value &lt;/ins&gt;described further in [[Collections#Using the This function as the Maximum parameter|&quot;Using the This function as the Maximum parameter&quot;]].  Therefore, &amp;lt;code&amp;gt;&amp;lt;var class=&quot;term&quot;&amp;gt;al&amp;lt;/var&amp;gt;:sort(ascending(this))&amp;lt;/code&amp;gt; can be specified simply as &amp;lt;code&amp;gt;&amp;lt;var class=&quot;term&quot;&amp;gt;al&amp;lt;/var&amp;gt;:sort&amp;lt;/code&amp;gt;.  See &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;the &lt;/ins&gt;[[SortNew (Arraylist function)#Examples|&quot;SortNew example&quot;]].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  &amp;lt;li&amp;gt;&amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; is available in &amp;lt;var class=&amp;quot;product&amp;quot;&amp;gt;[[Sirius Mods|&amp;quot;Sirius Mods&amp;quot;]]&amp;lt;/var&amp;gt; Version 7.3 and later.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  &amp;lt;li&amp;gt;&amp;lt;var&amp;gt;Sort&amp;lt;/var&amp;gt; is available in &amp;lt;var class=&amp;quot;product&amp;quot;&amp;gt;[[Sirius Mods|&amp;quot;Sirius Mods&amp;quot;]]&amp;lt;/var&amp;gt; Version 7.3 and later.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/ul&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/ul&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Dme</name></author>
	</entry>
</feed>