<div id="CustListGrid" style=" width:1170px;margin-top:10px" pagesize="10" pagelist="[10, 15]" pagination="true"></div>
$('#CustListGrid').datagrid({
            url: '',
            singleSelect: true,
            remoteSort:true,
            columns: [[
                { field: 'CustomerName', title: '客户名称', width: 100, align: 'center',sortable:true},
                { field: 'UserName', title: '业务员', width: 100, align: 'center',sortable:true },
                { field: 'EmployeesNumber', title: '公司人数', width: 100, align: 'center',sortable:true },
                { field: 'CustomerProperty', title: '公司性质', width: 100, align: 'center',sortable:true },
                { field: 'CustomerTrade', title: '行业', width: 100, align: 'center',sortable:true },
                { field: 'CustomerCity', title: '城市', width: 100, align: 'center',sortable:true }
                { field: 'CreaterTime', title: '录入时间', width: 150, align: 'center',sortable:true }
            ]]
        });
我已经实现了数据的分页显示,默认的是修改时间排序,但是现在要实现单击列自动排序,找了好多资料都不行,好多都要重新写一个自动排序的方法,看了也没看懂,都不会用,哪位大大帮个忙啊,最好是有源码...