public void setSortField() {
    if (!moveMode) {
      Field newSortField = fields.get(currentPosition);
      if (newSortField != this.sortField) {
        this.sortField = newSortField;
        fieldScreenView.showScreenDescription(sortField.getHeader());
        fieldScreenView.refreshTerminal();
      }
    }
  }
The presentation logic for the field screen.
hbase-hbtop/src/main/java/org/apache/hadoop/hbase/hbtop/screen/field/FieldScreenPresenter.java