I have a + store model that is connected to a third-party plugin (Ext.ux.TouchGridPanel). The plugin calls the store () sort method correctly with the appropriate mapping. Everything works fine, and the store sorts itself. However, I would prefer to add customer sorting to the store. I tried adding a sortType field to my model:
Ext.regModel("Transactions", { fields: [ { name: 'unit', type: 'string', sortType: function(value) { console.log('PRINT GDAMNIT'); return 0; } }, ... ] });
This, however, does not work, and sortType does not receive the call.
TL; DR: how to do regular sorting for stores?
source share