Which do you think is faster in a PHP script:
$query = \"SELECT... FROM ... ORDER BY first_val\";
or
while($row = odbc_fet
If the ordered field is indexed, I'd say probably the SQL query. If not, I'm not sure, but I can't imagine it will be overly noticeable either way unless you're dealing with an absurdly large number of rows.