in reply to MySQL Alphabetical order with DBI
Personally, I would restructure the database and split the column into consituents. FirstName (varchar 50), LastName (varchar 50), pageref (??). That way, you can use SQL to perform the sort (e.g. SELECT * FROM authors ORDER BY LastName) and eliminate the possibility of sorting on the wrong name. You would also see a speed performance increase doing it this way.
update: a little slow on the keyboard this morning. Asim makes a good point about Lingua::EN::NameParse
|
|---|