Which do you think is faster in a PHP script:
$query = \"SELECT... FROM ... ORDER BY first_val\";
or
while($row = odbc_fet
ORDER BY will almost always be faster.