User:Alex 21/script-categoriessort

User:Alex 21/script-categoriessort.js is a script that sorts categories in an article alphabetically.

Installation
To install the script, add: importScript('User:Alex 21/script-functions.js'); importScript('User:Alex 21/script-categoriessort.js'); to Special:MyPage/common.js.

Upon clicking the "Sort categories" link under "Tools" on the left, the script will sort categories alphabetically, with eponymous categories appearing first, and categories starting with "A [..]" or "The [..]" being sorted according to their second word. So, running it on an article with:

will result in the categories being listed as:

Bugs
Please report any bugs on the talk page of the script's creator.