关键的 sortInfo: {field:'orderNum', direction:'ASC'}, 就是排序啊 为什么显示还是没有按照设定的显示呢? 很急 谢谢大伙了 之前我用的静态假数据 能排序 单击GridPanel中的字段名也行, 现在怎么也出不来了var dictRecord = Ext.data.Record.create([
            {name: 'dictName', type: 'string'},
            {name: 'dictCode', type: 'string'},
            {name: 'orderNum', type: 'int'},
            {name: 'dictId', type: 'string'}
        ]);
        
        // 获取动态数据
        var proxy = new Ext.data.HttpProxy({
            url : "/SLaw/system/QueryFirstDict.action"
        })
    
        var store = new Ext.data.GroupingStore({
            proxy: proxy,
            remoteSort:true,
            sortInfo: {field:'orderNum', direction:'ASC'},
            reader: new Ext.data.JsonReader({
                totalProperty: 'totalCount',
                root: 'slawFirstDictList'
            },dictRecord)
        });
        
        store.load({params:{start:0, limit:15}});
        this.sm = new Ext.grid.CheckboxSelectionModel();
        this.cm = new Ext.grid.ColumnModel([
                new Ext.grid.RowNumberer(),// 获得行号
                this.sm,//checkbox
                {    header: "数据字典名称",    width: 150,            menuDisabled : true,
                    align: "center",    sortable: true,            dataIndex: "dictName"
                },
                {    header: "数据字典编码",    width: 150,            menuDisabled : true,
                    align: "center",    sortable: true,            dataIndex: "dictCode"
                },
                {    header: "显示顺序",    width: 150,              menuDisabled : true,
                    align: "center",    sortable: true,            dataIndex: "orderNum"
                },
                {    menuDisabled : true,    width: 150,            hidden: true,
                    align: "center",    sortable: true,            dataIndex: "dictId"
                }
            ]);