MDL-31541 Repositories - make sure all repository instances have unique 'sortorder...