I'm developing a naming system for a video game, where a player or NPC's name can and in some cases will be mononyms, and in other cases a full name with a first and last name. This leads to a problem when figuring out how to display a list of names in alphabetical order.
For full names the 'sorting' format is 'family name, given name', and for mononyms just 'given name'. Should I change the way that I format the full name, and compare it to 'given name' and 'givenName familyName'? Or is there a more appropriate way to handle mononyms?