

def sort_items(self, request, items):
    sidx = request.GET.get('sidx')
    if (sidx is not None):
        sord = request.GET.get('sord')
        order_by = ('%s%s' % ((((order_by == 'desc') and '-') or ''), sidx))
        try:
            items = items.order_by(order_by)
        except FieldError:
            pass
    return items

dataset/ETHPy150Open gerry/django-jqgrid/jqgrid.py JqGrid.sort_items/VarMisuse@55/73 `sord`->`order_by`