table控件有filter的属性,可以过滤数据table.filtered :=false;table.filter := ...//过滤条件table.filtered := true;至于排序,可以用indexfieldnames设置一个字段名称就可以了