Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

mysql order by


Guest

Recommended Posts

I have sporting league tables which have the divisions as 'P' (Premier), '1', '2' and '3'.

 

I have this code installed: ORDER BY division ASC, which puts 'P' at the bottom of the list.

 

How can I put 'P' at the top? (then 1,2,3).

 

Thanks,

 

Wayne.

Link to comment
Share on other sites

you would have to define a sort order column with that sql table so then you will be able to define the order of the entries and sort them accordingly.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...