Add filter, sorted method in NodeFactory.