PDA

View Full Version : Ternary sort using Ext.data.SortTypes



dgherrig
12 Aug 2012, 3:08 PM
Hi,
I am trying to do a data level sort with a custom sortType. The documentation for Ext.data.SortTypes at http://docs.sencha.com/ext-js/4-1/#!/api/Ext.data.SortTypes seems pretty straight forward.


However, I need to do a sort where the input parameters are the "current" and "next" sort value and the returned value is either 1, 0, or -1 essential a ternary value is returned This is a fairly common paradigm used in a number of different sorting applications.


Does anybody know how or can point me to some documentation on how this could be done using Ext.data.SortTypes.


Thanks in advance for any help on this.

dgherrig
13 Aug 2012, 6:24 AM
To be more specific it looks like the Ext.data.SortTypes does not support the interface where the input parameters are the "current" and "next" sort value and takes a returned value of either 1, 0, or -1 essential a ternary value is returned.

So I guess the question when will this type of interface be supported for the Ext.data.SortTypes