Hi Eric,
I solved the array!
I'm using the ksort (by key).
Here's what I did:
<?
...
// in the for loop for variables every row
$rowsort[$title] = "$desc*$billrate";
...
// outside the loop
ksort($rowsort);
while(list($key,$val) = each ($rowsort))
{
$title = $key;
$getvar = explode("*", $val);
$desc = $getvar[0];
$billrate = $getvar[1];
... // rest of the codes
}
?>
Thanks for the reference.
Mike