@Override
    public void filterAndSort() {
        setValue(null);
        TreeTableFeatures.filterFeature().filter(FacesContext.getCurrentInstance(), this, getValue());
        TreeTableFeatures.sortFeature().sort(FacesContext.getCurrentInstance(), this);
    }
Recalculates filteredValue after adding, updating or removing TreeNodes to/from a filtered TreeTable.
primefaces/src/main/java/org/primefaces/component/treetable/TreeTable.java