Jump to content

[SOLVED] Using ORDER BY value DESC/ASC for a price table


scrubbicus

Recommended Posts

So I'm trying to create an ORDER BY for all four columns in my table (name, price, date, and category) three out of four are ordering the way I want them to but price is ordering by the first highest numerical digit rather by then how many total digits there are. So $6 is higher then $2000 in this case and $10000 is lower then both of them. How would I go about ordering the price column by highest and lowest?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.