The code I have explodes the names into alphabetical order but I need to get it in alphabetical order by last name... note the Mr.
Any help would be appreciated.
$harry_potter_characters = "Bathsheda Babbling, Malcolm Baddock, Mr Bagman, Ludovic Bagman, " .
"Otto Bagman, Millicent Bagnold, Bathilda Bagshot, Heathcote, Barbary, " .
"Musidora Barkwith, Baruffio, Ali Bashir, Hetty Bayliss, Oswald Beamish, " .
"Herbert Beery, Flavius Belby, Marcus Belby, Humphrey Belcher, Katie Bell";
$potter_characters=explode(", " , $harry_potter_characters);