Dojo DGRID未排序

Dojo DGRID未排序,dojo,dgrid,dstore,Dojo,Dgrid,Dstore,我有一个dojo dgrid,其中有一个指定的数据存储/内存存储 _instance = new Memory({ data: { identifier:'monthNumeric', items: [] } }); 当我单击网格的标题时,我看到排序箭头发生了变化,但网格中的内容没有变化 我跟踪了代码,看到它构建了一个排序对象。然后从_StoreMixins.js调用此代码 _applySort: function () {

我有一个dojo dgrid,其中有一个指定的数据存储/内存存储

_instance = new Memory({
    data: {
        identifier:'monthNumeric', 
        items: []
        }
    });
当我单击网格的标题时,我看到排序箭头发生了变化,但网格中的内容没有变化

我跟踪了代码,看到它构建了一个排序对象。然后从_StoreMixins.js调用此代码

_applySort: function () {
        if (this.collection) {
            this.set('collection', this.collection);
        }
        else if (this.store) {
            console.debug('_StoreMixin found store property but not collection; ' +
                'this is often the sign of a mistake during migration from 0.3 to 0.4');
        }
    },
集合的设置似乎创建了一个排序函数,但实际上并没有执行它

这是怎么回事


(我不知道这是否重要,但同一个存储区也被用于Dojo图表,包装在DStoreAdapter中。但这里不是这样使用的)

dgrid 1.1.0在setCollection中添加了一个围绕刷新启动的检查


因为我从未在网格上启动过,所以没有设置。一旦我启动了,一切都按预期进行了

上有一些示例演示了排序工作(包括首页上的功能网格)。您能提供一个可运行的示例来演示它在哪里不可用吗?在尝试创建JSFIDLE时,我发现1.0.0和1.1.0之间的一个变化影响了我的代码