$list sort

Allows you to sort the elements of a given list in a ascending or descending order.


Example

Running this code will create a list named "%mylist" with the texts "3 A D 2 1 4 C B". Then, the list will be sorted in ascending order, showing it in the alert box.

This will be shown in the alert box.

add list to list(%mylist,$list from text("3,A,D,2,1,4,C,B",","),"Delete","Global")
alert($plugin function("Data and Files Automation.dll", "$list sort", %mylist, "Ascending", ""))

Was this helpful?

Previous Article

$list shuffle

Next Article

$list to spin syntax