By default JQGrid supports sort-by-column. The user can sort the grid by clicking a column heading. The direction of the sort can also be toggled by clicking the same column heading again. This can be seen in the JQGrid demos.
I need to add sort-by-row to my grid. Ideally this would work in exactly the same way - the user can click a row heading to sort by the data in that row, and click again to toggle the direction of the sort.
I have tried to illustrate the sorting with an example.
Sorted by column 'Col-1':
Col-1^ Col-2 Col-3 Row-1 A B C Row-2 B C A Row-3 C A B
Sorted by row 'Row-2':
Col-3 Col-1 Col-2 Row-1 C A B Row-2^ A B C Row-3 B C A
How can I add this to my JQGrid?