title: CollectionViewSource with custom sort
body: <p>I'm new to WPF and I'm having difficulty trying to sort a CollectionViewSource with a custom sort. Here's the situation:</p>
  
  <p>I have a SearchView that is called with a parameter which becomes it's datacontext like so:</p>
  
  <pre><code>mainView.SetGlobalOverlay(New SearchView With {.DataContext = interventionViewModel})
  </code></pre>
  
  <p>In the SearchView.xaml, I then bind the CollectionViewSource to the collection :</p>
  
  <pre><code>&lt;CollectionViewSource x:Key="UnitsCollection"
                            Filter="UnitsCollection_Filter"
                            Source="{Binding Path=Units}" /&gt;
  </code></pre>
  
  <p>Now, I already have an IComparer interface implemented in another shared class. This comparer is used on a ListCollectionView somewhere else in the sourcecode and works fine. Now, how can I re-use this comparer on a CollectionViewSource?</p>