Resolving: Sort matched Capabilities
The Resolver expects Capabilities in priority order.
We sort in Repository order, so Capabilities from the first Repository
are ordered before the second etc.