Template:NameSort/doc

This sub-template, when placed into other templates like Cast, will automatically alphabetise most names on category pages.