sorttype jqGrid loadonce:true jqGrid paremter "remote" json '' xml. , sorttype .
, . "", .

Wenn " sorttype", ,

,
var myCustomSort = function(cell,rowObject) {
if (typeof cell === "string" && /^test(\d)+$/i.test(cell)) {
return parseInt(cell.substring(4),10);
} else {
return cell;
}
}
"change"
$("#customsorttype").change(function() {
var isChecked = $(this).is(':checked');
if (isChecked) {
cm.sorttype = myCustomSort;
} else {
cm.sorttype = "text";
}
grid.trigger("reloadGrid");
});
grid - $("#list").
, sorttype:"text".