Sort numerical references when collapsing them.

Fixes
citeproc-test/processor-tests/machines/collapse_CitationNumberRangesMixed2.json