title: Alphabetically Sorting the items on a ListView
body: <p>I have a listview like this and in FormLoad event I should do some initializations for it such as this: ( I need these ) . </p>
  
  <pre><code>    listView.Scrollable = true;
      listView.HideSelection = false;
      listView.FullRowSelect = true;
      listView.View = View.Details;
      listView.HeaderStyle = ColumnHeaderStyle.None;
      ColumnHeader header = new ColumnHeader();
      header.Text = "MyHdr";
      header.Name = "MyCol";
      header.Width = listView.ClientSize.Width;
      listView.Columns.Add(header);
  </code></pre>
  
  <p>and the way I am adding items to it is pretty simple like this:</p>
  
  <pre><code>listView.Items.Add("hello");
  listView.Items.Add("How are you");
  //... etc
  </code></pre>
  
  <p>But I want them to be added and sorted alphabetically but when I add a new item to it and call Sort method, it doesn't do anything.
  Why?! :( </p>
  
  <p><strong>EDIT:</strong> This is the whole section that at its last line I am calling Sort()
  The goal is to have two list views, and a Move Button, when Move button is clicked the selected items from one listview should get moved to the other listview.
  (Both listviews don't need to be sorted. Just the AvailLV listview should be sorted )  </p>
  
  <pre><code>private void MoveBtn_Click(object sender, EventArgs e)
  {
      ListView source=null;
      ListView target= null;
  
      if(AvailableLV.SelectedItems.Count&gt;0)
      {
          source = AvailableLV;
          target = SelectedLV;
      }
  
      if(SelectedLV.SelectedItems.Count&gt;0)
      {
          source = SelectedLV;
          target = AvailableLV;
      }
  
      if (source != null &amp;&amp; target != null)
      {
          HaulItems(source, target);
      }
  }
  
  private void HaulItems(ListView source , ListView target)
  {
      foreach(ListViewItem item in source.Items)
      {
          if(item.Selected)
          {
              source.Items.Remove(item);
              target.Items.Add(item);
          }
      }
      AvailableLV.Sort();
  }
  </code></pre>