I find out this code:
dataGridView1.Sort(dataGridView1.Columns[0],ListSortDirection.Ascending);
Is there anything like this but for listView in C#?
Edit: I have a listView like this.
How can I sort lvi by Name or Last Name? I find out this but sort the lvi by Id.
listView_Test.Sorting = SortOrder.Ascending;
// or
listView_Test.Sorting = SortOrder.Descending;