When the sorting is at server it is needed to write your own function to do this.
jqGrid send automatically two parameters which should be accepted from the server - sortname and sortorder.