/// <summary> /// Sorts the recordsets. /// </summary> private void SortRecset(bool ascending) { IList <IDataListItemModel> newRecsetCollection = @ascending ? RecsetCollection.OrderBy(c => c.DisplayName).ToList() : RecsetCollection.OrderByDescending(c => c.DisplayName).ToList(); RecsetCollection.Clear(); foreach (var item in newRecsetCollection.Where(c => !c.IsBlank)) { RecsetCollection.Add(item); } AddRecordSet(); }