tonytomov/jqGrid — pull request #347 by amithgeorge (2012-07-18 23:01:37+00:00)
Title: fix for issue #131

When grouping is enabled, jqGrid adds the grouping fields to the sort columns. However convention says if the colModel has an index defined along with the name, then the inde should be used for sorting and not the name. Currently, jqGrid will send the name as the parameter to sort on irrespective of whether the index is defined or not.

The fix checks whether an index is defined in the respective colModel definition and uses that if present.

This works on my machine! I might not have covered all possible scenarios. If you can guide me in that direction, I can cover those areas as well.