Compare two matches by specificity.
Passing to .sort() will sort matches from least specific to most specific.
function compare(a: Match, b: Match): -1 | 0 | 1
the first match to compare
the second match to compare
-1 if a is less specific, 1 if a is more specific, 0 if tied.