Hiya,

header Row exclusion support added (updated first message, deleted all annoying 'edited by' entries),
decided to do the easy things first

sample :

code:

break on cls
call "path\SortArray.udf"
dim $array[5]
$array[0] = "Location","Name","Member No."
$array[1] = "Stuttgart","jpols",611
$array[2] = "Houston","Bryce",600
$array[3] = "Toronto","Shawn",173
$array[4] = "Brisbane","cj",677
$array[5] = "Jyvaeskylae","Lonkero",2306
$array = SortArray($array,1,3,1) ;ascending by Member No.($array[x][2]),'header row' excluded
for $rc = 0 to ubound($array)
for $col = 0 to ubound($array[$rc])
at($rc*2,$col*15)$array[$rc][$col]
next
next
get $


will now return :

code:

Location Name Member No.

Toronto Shawn 173

Houston Bryce 600

Stuttgart jpols 611

Brisbane cj 677

Jyvaeskylae Lonkero 2306


Jochen

[ 16 July 2001: Message edited by: jpols ]

[ 19 July 2001: Message edited by: jpols ]

_________________________