So my list box is populate with files from a folder. I want the files to be on a ascending way, but some files got the same name, and when u name something with the same name on windows it goes like, filename, filename (2), filename (3)... filename(10)...
But on the listbox it goes like filename (10), filename (11), filename (2), filename (3)... filename
And I want it to be exactly how windows go...
I tried this but no results
items = ListBox1.Items.OfType(Of Object)().ToList()
ListBox5.Items.AddRange(items.OrderBy(Function(i) i).ToArray())