Module:Footnotes/whitelist/sort/doc

Usage
This module reads Module:Footnotes/whitelist as a text document, and then: The result is presented in §whitelist below. Because Lua modules cannot make changes to the source document, editors must do that:
 * normalizes whitespace in each citeref entry
 * removes duplicate entries
 * moves citerefs from 'UNSORTED' into the correct section
 * sorts the entries in each section
 * lua comments will sort to the top of the section and will be alpha sorted which may make original multi-line comments non-sensical
 * reconstructs the whole table
 * 1) purge this page to refresh the whitelist
 * 2) copy the content of §whitelist to your clipboard
 * 3) edit Module:Footnotes/whitelist
 * 4) paste the new &#x3c;code&#x3e;whitelist{}&#x3c;/code&#x3e; over the existing table
 * 5) click Show changes to make sure nothing untoward occurred
 * 6) click Publish changes to save

There are known limitations:
 * this tool is not clever enough to move citerefs from the UNSORTED section to the ODNB section so citerefs in UNSORTED intended for ODNB must be manually placed in ODNB else the tool will place them according to first character following 'CITEREF'

whitelist
&#x3c;includeonly&#x3e;&#x3c;/includeonly&#x3e;