code: @Override
    public int compareTo(InstanceProvider instanceProvider) {
      if (this.getPriority().equals(instanceProvider.getPriority())) {
        return this.getName().compareTo(instanceProvider.getName());
      } else {
        return this.getPriority().compareTo(instanceProvider.getPriority());
      }
    }
docs: Default implementation of compareTo for the InstanceManager.