Sort Weblistbox

[quote=211266:@Lars Lehmann]So there is no way to sort an array of arrays? If I write a method, that sort listboxes with custom columncount, I have to do it with a lot if-thens…

hmmm…[/quote]
Create a class that is basically an array of column values. You can grow that array dynamically.
Then build 2 arrays, one string (the value of the column you’re sorting by) and one array of your class type (all the values in the table).

theStringArray.SortWith(theClassArray)

Repopulate the table from values in theClassArray.

Thanks Tim!

You can also create your own custom sort method for a class so that you can sort it directly. See Easily Sorting Arrays of Classes.