PDA

View Full Version : How to add a custom sort for table column click event



mtan12
30 Jan 2014, 1:02 PM
Hi,

I am trying to make a custom sort that takes the absolute value of the data and sort it. I have added the custom sort to the store to sort it initially, but when the user click on the column header, it resets it back to the default sort.


How do I make a custom sort function for column?

mtan12
31 Jan 2014, 8:26 AM
Any idea to change the sort

jmcolyer
31 Jan 2014, 9:55 AM
I'm not sure how you implemented it without seeing any code. Maybe you can try adding a sorttype.

http://spin.atomicobject.com/2012/07/20/simple-natural-sorting-in-extjs/