docs: public void register(InternalIndex index) {
          String[] components = index.getComponents();
          String attribute = components == null ? index.getName() : components[0];
  
          Record record = registry.get(attribute);
          if (record == null) {
              record = new Record();
              registry.put(attribute, record);
          }
  
          if (index.isOrdered()) {
              if (record.orderedWorseThan(index)) {
                  record.ordered = components == null ? index : new FirstComponentDecorator(index);
              }
          } else {
              if (record.unorderedWorseThan(index)) {
                  record.unordered = index;
              }
          }
      }