I am trying to sort a column in jqgrid by two different columns. For instance, I have a column "StoreName" and its sort will be determined by the columns "d0_key" and "d0_tot_key" (both integers). I understand that sorttype in the colmodel can be use to create a custom sort, but I'm not finding an algorithm that takes into account both columns. Below is a simple representation of the data.
StoreName d0_key d0_tot_key
92nd Gessner 1 0
92nd Gessner 1 0
Total Sum 1 10
Total Avg 1 20
Annco 2 0
Annco 2 0
Total Sum 2 10
Total Avg 2 20