code: public void setSorting(boolean value) {
          model.setSortingCategories(value);
          model.setSortingProperties(value);
          sortButton.setSelected(value);
      }
docs: Sets sorting properties and categories enabled or disabled.
  
  @param value true to enable sorting