private void ReSortCurrentCards(bool isReverse) { var temp = new List <CardInformation>(Cards); sign = isReverse ? -1 : 1; temp.Sort(CurrentSortMethod); PopulateCards(temp); NextCards.Sort(CurrentSortMethod); PreviousCards.Sort(CurrentSortMethod); }
public void SortWithAnswer(bool isReverse) { viewColumn = SearchSortColumn.Answer; var temp = new List <CardInformation>(Cards); sign = isReverse ? -1 : 1; temp.Sort(CompareAnswer); PopulateCards(temp); NextCards.Sort(CompareAnswer); PreviousCards.Sort(CompareAnswer); }