[TO_STAGE] Sort by cartridge version in cartridge_repository