update sort_items method to support grouping option of jqgrid