Jump to content

mysql Sorting - ignoring prefix


peterjc

Recommended Posts

I have a column to store the following serial no.

 

Serial No.

aa/0001

bb/0005

cc/0002

dd/0004

ee/0003

 

Could someone help me how to sort it by ignoring the aphabet and slash infront (Example: ignore the : "aa/" while sorting)

 

Example the returned result will be:

aa/0001

cc/0002

ee/0003

dd/0004

bb/0005

 

Thank in advance

Link to comment
https://forums.phpfreaks.com/topic/229099-mysql-sorting-ignoring-prefix/
Share on other sites

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.