Probably not. If you are only getting prices from the query you could loop through your resultset and add each price to an array without the comma and then sort the array and then display each element of the array. Something like this:
$result = mysql_query("SELECT price from tablename", $db);
if (mysql_num_rows($result) > 0) {
while ($myrow = mysql_fetch_array($result)) {
$prices[] = ereg_replace(",", "", $myrow["price"]);
}
}
asort($prices);
while (list ($key, $val) = each ($prices)) {
print $val . "<br";
}
If you need to get more fields as well you could simply use this instead:
$result = mysql_query("SELECT * from tablename", $db);
if (mysql_num_rows($result) > 0) {
while ($myrow = mysql_fetch_array($result)) {
$prices[] = ereg_replace(",", "", $myrow["price"])."|".$myrow["field2"]."|".$myrow["field3"];//And so on....
}
}
asort($prices);
while (list ($key, $val) = each ($prices)) {
$display = explode("|", $prices);
print "Price= ". $display[0] . "<br";
print "Field2= ". $display[1] . "<br";
print "Field3= ". $display[2] . "<br";
}
Hope that helps!