Available in:
Apps (win)
Apps (char)
Reportwriter
RPC
Standalone PL
X
X
X
X
X
void list_sort2(list-name,cmp,col[,col,...],direction) list list-name trigger cmp; int col,direction
| list-name | specifies the list to sort.
|
| cmp | specifies the user trigger to receive the
column data to compare.
|
| col | specifies the column on which to sort.
If multiple columns are specified, the sort is performed on all
the columns in the order specified.
|
| direction | specifies sort order:
|
{
list LL;
trigger cmp =
{
if (parm.0 > parm.2) return(1);
if (parm.0 < parm.2) return(-1);
if (parm.1 > parm.3) return(1);
if (parm.1 < parm.3) return(-1);
return(0);
};
LL = list_open("x zip.xml",99999);
list_sort2(LL,cmp,0,1,true);
}