This javascript will do an alphanumeric sort
var arr = [];
arr = testsort.split( "," );
arr.sort(function (a, b) { return a.toLowerCase().localeCompare(b.toLowerCase()); });
It will take the local variable %testsort That contains a comma separated list and return the sorted comma separated list in the local array %arr
So you'll just need to do a variable set %testsort = %Yourarray(:) first and this will save your original array and give you a sorted array in %arr
Rich..
Oooops..
** EDIT **
> It will take the local variable %testsort That contains a comma separated list and return the sorted local array %arr