private void listView_ColumnClick(object sender, ColumnClickEventArgs e) { var sorter = new ListViewSorter(e.Column); this.listView.ListViewItemSorter = sorter; this.listView.Sort(); }