public ICriteria AddSorting(ICriteria criteria, PagingOptions page) { SortBy.ModifyPaging(page); criteria = criteria.AddOrder(new Order(page.SortColumn, page.SortAscending)); return(criteria); }