Hello All,
After tedious labor I have solved the problem of sorting a two-dim array. I would advise putting this into a function and calling it only when you need to. This will sort the array from lowest to highest value. also note worthy is the variable $d, this you have to set to the column number in the array that you want to sort by. I hope I made this simple for everyone. if you have questions email me.
Bill
seaduction69@excite.com
for($a="0";$a<$nrows;$a++){
for($b="0";$b<=$nrows-1;$b++){
for($c="0";$c<$ncols;$c++){
if($array[$a][$d] < $array[$b][$d]){
$temp[0][$c] = $array[$b][$c];
$array[$b][$c] = $array[$a][$c];
$array[$a][$c] = $temp[0][$c];
}
}
}
}