in reply to MySQL Alphabetical order with DBI
Better still store your data in a more usable format ;) Thanks UnderMineSELECT Name, RIGHT(Name,LENGTH(Name)-LOCATE(' ',Name)) as sortorder FROM Addresses ORDER BY RIGHT(Name,LENGTH(Name)-LOCATE(' ',Name))
|
|---|