Introduce SpecifierSorter, a thing that knows how specifiers should be ordered.