//UPDATE //------------------------------------------------------------------------------------------- /// <summary> /// Sorts the collection based on a given property and direction /// </summary> /// <param name="sortParameter"></param> /// <param name="sortDirection"></param> /// <returns></returns> public DiffResultSpanCollection Sort(string sortParameter, SortDirection sortDirection) { ArrayList sortList = (ArrayList)this.InnerList.Clone(); CollectionSorter cs = new CollectionSorter(sortParameter, sortDirection); sortList.Sort(cs); //UPDATE return(new DiffResultSpanCollection(sortList)); }
//UPDATE //------------------------------------------------------------------------------------------- /// <summary> /// Sorts the collection based on a given property and direction /// </summary> /// <param name="sortParameter"></param> /// <param name="sortDirection"></param> /// <returns></returns> public DiffResultSpanCollection Sort(string sortParameter, SortDirection sortDirection) { ArrayList sortList = (ArrayList)this.InnerList.Clone(); CollectionSorter cs = new CollectionSorter(sortParameter, sortDirection); sortList.Sort(cs); //UPDATE return new DiffResultSpanCollection(sortList); }