Sorting Markdown footnote markers into their order of appearance in the text.