title: How do i sort my listview alphabetically?
body: <p>So i have this listview, and i want to make it alphabetically sorting. do someone know if you can do it? and if you know how you can do it, then show me the code. LOOKING FOR HELP!!</p>
  
  <p>this is my Xaml.cs code:</p>
  
  <pre><code>namespace App2
  {
  public partial class MainPage : ContentPage
  {
      List&lt;Kontakter&gt; kontakter = new List&lt;Kontakter&gt;
      {
          new Kontakter
          {
          Fuldenavn = "Name One (NO)",
          Tlfnr = 12345678
          },
          new Kontakter
          {
              Fuldenavn = "Another Name (AN)",
              Tlfnr = 23456789
          },
          new Kontakter
          {
              Fuldenavn = "Third Name (TN)",
              Tlfnr = 34567890
          },
          new Kontakter
          {
              Fuldenavn = "Yet Another (YA)",
              Tlfnr = 45678901
          }
      };
  
      public MainPage()
      {
          InitializeComponent();
  
          NameslistView.ItemsSource = kontakter;
      }
  
      private void MainSearchBar_SearchButtonPressed(object sender, EventArgs e)
      {
          var keyword = MainSearchBar.Text;
          NameslistView.ItemsSource = kontakter.Where(obj =&gt; (obj.Fuldenavn.Contains(keyword) || obj.Tlfnr.ToString().Contains(keyword)));
      }
  }
  }
  </code></pre>
  
  <p>this is my Xmal code:</p>
  
  <p>
      </p>
  
  <pre><code>&lt;ListView x:Name="NameslistView" HasUnevenRows="True"&gt;
      &lt;ListView.ItemTemplate&gt;
          &lt;DataTemplate&gt;
              &lt;ViewCell&gt;
                  &lt;Label Text="{Binding Fuldenavn}" /&gt;
                  &lt;Label Text="{Binding Tlfnr}" /&gt;
              &lt;/ViewCell&gt;
          &lt;/DataTemplate&gt;
      &lt;/ListView.ItemTemplate&gt;
  &lt;/ListView&gt;
  </code></pre>
  
  <p></p>