in reply to MySQL Alphabetical order with DBI

Do it in the database....
SELECT Name, RIGHT(Name,LENGTH(Name)-LOCATE(' ',Name)) as sortorder FROM Addresses ORDER BY RIGHT(Name,LENGTH(Name)-LOCATE(' ',Name))
Better still store your data in a more usable format ;) Thanks UnderMine