The file main.js has a data object which includes the characters titles, first names and last names.
The function sorts by first name with the character titles prepended and concatenates the characters titles and names following the rules below.
Title formatting rules:
For a character with a single title: `King of the Castle Mark Zuckerberg`
For a character with more than one title: `King of the Castle and Watcher of People Mark Zuckerberg`
Optionally, for characters with more than two titles: `King of the Castle, Watcher of People and Brogrammer Mark Zuckerberg`.
To see the javaScript file, click on the the button below.