I am using jqGrid 3.7.2 with local data. For some columns the default sorttypes are not sufficient. I need to provide a custom sorttype, which I understand is possible. I don't know how to get it to work though. The code below is my best attempt at getting it to work using a technique suggested by Tony in a separate post from OlegK – I can't make it call the custom sorting function though. The idea is to sort the 'Posn' field in the order 'GK'->'DEF'->'MID'->'STR'.