I have a jqgrid,and I have a SortNo field which handling my sorting, how could I dynamically adjust its sorting when I add the same number in sortNo and automatically adjust the number by sequence. Please see in my sample in the link above. Can someone please help me? \[code\]$(document).ready(function(){ var xaxis=645var yaxis = $(document).height();yaxis = yaxis-100; getGrids();$("#maingrid").jqGrid({ url:'models/gridheaders.php?todo=select&id=new', datatype: 'xml', mtype: 'POST', colNames:['ID','Description_EN','Description_JP', 'SortNo','ColWidth','GridID','Module'], colModel :[ {name:'id', index:'id', width:120, align:'center',sortable:false,editable:false,editoptions:{size:"30",maxlength:"30"}}, {name:'eng', index:'eng', width:120, align:'center',sortable:false,editable:true,edittype:"text",editoptions:{size:"30",maxlength:"30"}}, {name:'jap', index:'jap', width:120, align:'center',sortable:false,editable:true,edittype:"text",editoptions:{size:"30",maxlength:"30"}}, //This field is I want to dynamically sort. {name:'sort', index:'sort', width:120, align:'center',sortable:false,editable:true,edittype:"text",editoptions:{size:"30",maxlength:"30"}}, {name:'col', index:'col', width:120, align:'center',sortable:false,editable:true, edittype:"text",editoptions:{size:"30",maxlength:"30"}}, {name:'grid', index:'grid', width:120, align:'center',sortable:false,editable:true,hidden:true,edittype:"text", editoptions:{size:"30",maxlength:"30"},editrules: { edithidden: true}}, {name:'used', index:'used', width:120, align:'center',sortable:false,editable:true,hidden:true,edittype:"text",editoptions:{size:"30",maxlength:"30"},editrules: { edithidden: true}}, }, ], viewrecords: true, rowNum: -1, height: yaxis, width: xaxis, shrinkToFit: false, multiselect: true, editurl:""}); \[/code\]Can someone help me, what function should I use to have a dynamic sorting? Thanks