Tree table updates by comparison of values