DGRID 不排序

DGRID not sorting

我有一个 dojo dgrid,其中分配了 dstore/Memory 商店

_instance = new Memory({
    data: {
        identifier:'monthNumeric', 
        items: []
        }
    });

当我点击网格的 header 时,我看到排序箭头发生变化,但网格中的内容没有变化。

我跟踪代码,看到它构建了一个排序 object。然后它从 _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');
        }
    },

collection的设置看似创建了一个排序函数,但实际上并没有执行。

这应该如何运作?

(我不知道这是否重要,但同一个商店也用于 Dojo 图表,包装在 DStoreAdapter 中。但这不是这里的使用方式)

dgrid 1.1.0 在 setCollection

中围绕刷新添加了对 _started 的检查

由于我从来没有在网格上启动过,所以没有设置。一旦我调整启动,一切都按预期工作