PDA

View Full Version : How to implement cyclic sort in a grid?



jocatastar
10 Dec 2013, 10:05 PM
Default Sort

Default sort for the screen should be some column in Descending Order (Done)

Primary Sort

User should be able to sort the columns by selecting the required column header. Default sort order should be in Ascending.
Second selection of the header should invert the sort order i.e. from ascending to descending
Third selection of the column header should remove the sort criteria. The cycle should be continued

Secondary Sort

Secondary sort refers to sorting of sorted values but on different columns
User should be able to perform secondary sort by selecting the required column header after Primary Sorting
Second selection of the header should invert the sort order i.e. from ascending to descending
Third selection of the column header should remove the sort criteria. The cycle should be continued

Kevin Jackson
12 Dec 2013, 10:18 AM
Not sure that I understand what you are looking for, does this help?http://docs.sencha.com/extjs/4.2.2/#!/example/grid/multiple-sorting.html