CSPACE-6333: Add secondary sort on uuid when querying for refobjs and relations containing refnames. Also refactor RelationUtils.findRelationsWithRefName to use RepositoryJavaClientImpl.findDocs.