PDA

View Full Version : Grouping sorting problem



manishprajapati
3 May 2012, 4:24 AM
Hi,

I don't want to sort my list output as my record set coming so I want to put like that.

Coming output is like this
34825


But I need like this:-
34826


I am using slide menu. I don't want to sort the data after grouped and I am not applying any sorting.

Please can anyone help.



Thanks,
Manish

mitchellsimoens
5 May 2012, 5:44 AM
What is your grouper like?

manishprajapati
6 May 2012, 11:02 PM
My grouper like:-


group: "FILTER NEWS FEED"

group: "A Resources"

group: "MORE"


I need the group in the same order which i have mentioned above.

estesbubba
7 May 2012, 5:51 AM
I was having the same problem and here is how I fixed it. It now uses the order from the store.



Ext.define('Csg.store.Detail', {
extend: 'Ext.data.Store',


requires: [
'Csg.model.Detail'
],


config: {
model: 'Csg.model.Detail',
grouper: {
groupFn: function(record) {
return record.get('group');
},
sorterFn: Ext.emptyFn
}
}
});