I need to sort the items in a visual base list with numbers, i.e. I have a set of numbers that I would like to sort more often.
I tried just to use the Sorted listbox property, but found that it was handling the numbers as if they were strings, i.e. it would look at the first digit, then the second, etc., to determine the order. This means that 13 will show up to 5, for example.
I was thinking about dumping all numbers into an array, knowing the array and then pushing them back to the list, but to be honest, I don't know how to go for sorting. I decided that the array would be useless since listbox already acts as a pseudo-array.
Any ideas?
source
share