public void BuildSorterCollection(HttpRequestBase request)
        {
            SortDescriptions = new List <SortDescription>();
            var idex = 0;

            while (true)
            {
                var sorter = new SortDescription()
                {
                    SortField = request.Params["sort[" + idex + "][field]"],
                    SortDir   = request.Params["sort[" + idex + "][dir]"]
                };

                if (sorter.SortField == null)
                {
                    break;
                }
                SortDescriptions.Add(sorter);
                idex++;
            }
        }
        public void BuildSorterCollection(HttpRequestBase request)
        {
            SortDescriptions = new List<SortDescription>();
            var idex = 0;
            while (true)
            {
                var sorter = new SortDescription()
                {
                    SortField = request.Params["sort[" + idex + "][field]"],
                    SortDir = request.Params["sort[" + idex + "][dir]"]
                };

                if (sorter.SortField == null) { break; }
                SortDescriptions.Add(sorter);
                idex++;
            }
        }