code: public int compare (Object o1, Object o2) {
  
      String re1 = ((ConnectionStatus)o1).getRemoteEngineName();
      String re2 = ((ConnectionStatus)o2).getRemoteEngineName();
  
      return re1.compareTo(re2);
    }
docs: If o1 comes after o2 return 1