View Full Version : Exclude Values from Store Sorting

30 Jun 2013, 10:58 PM
Hi, am new to EXTJS , i have a store and am manually adding value "ALL" to the Store. but when its getting sorting the ALL value will go down. It wont stay at the top of the post.

sorters: [ {
property : 'customerName',
direction: 'ASC'
in a listner am sorting like this

var rec = { customerId: 'ALL', customerName: '' }; var store = Ext.StoreMgr.lookup('Customers');

So i want to exclude ALL value from sorting and put it in the top.

1 Jul 2013, 4:17 PM
You can use a custom sorterFn to sort the records however you'd like, which will allow you to bake in exceptions: http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.util.Sorter-cfg-sorterFn

3 Jul 2013, 12:31 AM
can you give with an example. i tried not working

3 Jul 2013, 4:10 AM
can you give with an example. i tried not working

Can you share what you tried?

3 Jul 2013, 8:55 AM
i tried to do like this.