I got this code.....
function compare($x,$y){
if($x[0] == $y[0])
return 0;
else
if($x[0] < $y[0])
return -1;
else
return 1;
}
usort($product, "compare");
do i need to write a separate function (another compare) to compare row 1, row 2, etc of $product?
thanks