@Override
    public List<LlapServiceInstance> getAllInstancesOrdered(boolean consistentIndexes) {
      List<LlapServiceInstance> list = new LinkedList<>();
      list.addAll(instances.values());
      Collections.sort(list, new Comparator<LlapServiceInstance>() {
        @Override
        public int compare(LlapServiceInstance o1, LlapServiceInstance o2) {
          return o2.getWorkerIdentity().compareTo(o2.getWorkerIdentity());
        }
      });
      return list;
    }
A single instance in an Llap Service.
llap-client/src/java/org/apache/hadoop/hive/llap/registry/impl/LlapFixedRegistryImpl.java