Hey

I'm using this listview sorter

http://www.java2s.com/Code/CSharp/GUI-Windows-Form/SortaListViewbyAnyColumn.htm

It works correctly only on 1st column, both ways, ascending and descending.
When I click the next columns, it works the first time but when I click again it doesn't work.
And the number sorting is off.
Like
0
1
29
4

Could it be because they are strings? How could I add ints to listview?

This is the listview generation code

ListViewItem item = new ListViewItem(video.Name);
                            item.SubItems.Add(video.Author);
                            item.SubItems.Add(video.Price); //Doesn't work, must use tostring()

Thanks

i think you are right that it is sorting by string, not my numeric value. you could write a custom sort that you pass the column index...