I would like to get your help regarding the OrderByThenBy extension method in the ObservableCollectionView class
I have following class.
public int Id;
public string Name;
public string CompanyName;
Customers = new ExtendedObservableCollection<Customer>();
CustomerView = new ObservableCollectionView< Customer>(Customers);
// I can order the view on single field as below
CustomerView.Order = (cust => cust.Name);
But I would like to sort the View based on two fields.
Cannot work out how to use OrderByThenBy method.
CustomerView.OrderByThenBy(cust => cust.CompnayName, cust => cust.Name);
I can see that the method returns an IEnumerable but not sure how best to make use of this.
Tried looking for an example in the Unit Tests and this extension method does not seem to have a unit test.
Could you please provide us usage of OrderByThenBy method for ObservableCollectionView ?
Thanks in Advance