keep proper order of citations when printing footnotes in HTML; reduce false positives when ensuring footnote doesn't contain a note reference