Date: Fri, 29 Mar 2024 01:59:41 -0700 (PDT) Message-ID: <31346563.473.1711702781188@wiki.srpcs.com> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_472_673981322.1711702781187" ------=_Part_472_673981322.1711702781187 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
Sorts a one dimensional dynamic array.
Syntax
NewArray =3D SRP_A= rray("SortSimpleList", Array, Option, Delim)
The sorted array.
Parameter | Description |
---|---|
Array | The one dimensional dynamic array to be sorted.&= nbsp;(REQUIRED) |
Option | A keyword indiciating how the array is to be sor= ted. (OPTIONAL) |
Delim | The delimiter that separates elements of the Arr= ay. (OPTIONAL) |
Note: You can append a "C" to the end of the above= options to make them case insensitive.
The Delim parameter tells the service what delimiter is used to delimit = elements in the given array. When omitted, @FM is assumed.
// Sort a simple l= ist using the default delimiter List =3D "Don":@FM:"Paul":@FM:"Frank":@FM:"Bob":@FM:"Kevin" List =3D SRP_Array("SortSimpleList", List) // List will be: "Bob":@FM:"Don":@FM:"Frank":@FM:"Kevin":@FM:"Paul" // Sort a simple list in reverse order List =3D "Don":@FM:"Paul":@FM:"Frank":@FM:"Bob":@FM:"Kevin" List =3D SRP_Array("SortSimpleList", List, "DescendingText") // List will be: "Paul":@FM:"Kevin":@FM:"Frank":@FM:"Don":@FM:"Bob" // Sort a simple list using a custom delimiter List =3D "81,90,44,66,52" List =3D SRP_Array("SortSimpleList", List, "AscendingNumbers", ",") // List will be: "44,52,66,81,90"