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