Hi Tony!
I am now back from the vocation and could test the new release of jqGrid with sorttype as function. Thank you very much! It works!
One more information about my original suggestion with the usage of index as a function. It works good with jqGrid 3.7 and 3.7.1, but don't work more on 3.7.2. The function from the index will be forward (in the version 3.7.1) to the expr parameter of getAccessor function. A working example with jqGrid 3.7.1 you can see here http://www.ok-soft-gmbh.com/jqGrid/CustomLocalSort.htm
The solution with sorttype as function I find very good. The most advantage which I see in the place is because sorttype are have sence only with the local data, but index on the other side not only for the local data.
The only restriction of the current implementation of sorttype as function is that it has only one parameter cell (getAccessor function has obj parameter instead), but no other information about the object which are sorted. This chould be not enough for some advance scenarios. So what do you think about the changing of the following lines
ab = $.jgrid.getAccessor(v,by);
if(ab === undefined) { ab = “”; }
ab = findSortKey(ab);
_sortData.push({ 'vSort': ab,'index':i});
to
ab = $.jgrid.getAccessor(v,by);
if(ab === undefined) { ab = “”; }
ab = findSortKey(ab,v);
_sortData.push({ 'vSort': ab,'index':i});
Then findSortKey will have additional second parameter with full row contain (only without current id). Probably id as a third parameter could be also helpful.
What do you think about, Tony?
Best regards
Oleg