title: Sorting an ObservableCollection of Objects by Properties in Xamarin Forms
body: <p>I am trying to sort an observable collection of objects by one of their properties in Xamarin Forms. </p>
  
  <p>It seems like the following code should work, but it does not. I am trying to learn as much as I can, so I am very interested why it does not. I'm certain I can copy and paste the solution somewhere, but I've yet to find an answer that explains the why.</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Collections.ObjectModel;
  using System.Linq;
  using Xamarin.Forms;
  using Xamarin.Forms.Internals;
  
  namespace engME
  {
      public partial class YourFullNamesListPage : ContentPage
      {
          ObservableCollection&lt;NameObject&gt; _nameList {get; } = MainPage.NameList;
          public YourFullNamesListPage()
          {
              InitializeComponent();
              _nameList = _nameList.OrderByDescending(a =&gt; a.Name);
              FullNamesList.ItemsSource= _nameList;
          }
      }
  }
  </code></pre>