View Full Version : Sorting in Ext js grid

2 Nov 2011, 2:23 AM
Hi everyone
Currently when I use setDefaultSort (http://docs.sencha.com/ext-js/3-4/#!/api/Ext.data.Store-method-setDefaultSort)(fieldName,"ASC"), the grid sort the column by A -> Z, a->z
However I want to sort like AaBbCc...Zz
Any one know how to do it?
Thank in advance, btw this is great forum :D


I found this in Ext 2.x:
http://www.sencha.com/forum/showthread.php?25829-Cannot-sort-case-insensitive&p=121657&viewfull=1#post121657 - problems solved
And if anyone need advance sorting, there's a great topic by great developer - animal: http://www.sencha.com/forum/showthread.php?48334-DISCUSS-Add-a-comparator-config-for-local-sort-on-Store&highlight=Store comparator

25 Nov 2011, 9:20 AM
Thank you for updating this thread so others can see your solution!