Hi Experts,
I'm working in VBA/VB6 and need to sort a two-dimensional array, for instance
array(1,0) = "Fred"
array(1,1) = "13"
array(2,0) = "Jamie"
array(2,1) = "Friday"
array(3,0) = "Andrew"
array(3,1) = "Date"
I want to sort the array using the zeroth index (ie the names), so that the sort would return an array:
array(1,0) = "Andrew"
array(1,1) = "Date"
array(2,0) = "Fred"
array(2,1) = "13"
array(3,0) = "Jamie"
array(3,1) = "Friday"
I've used quicksort for my single dimensional arrays, but my understanding is that I can't do that on this. Any advice would be much appreciated.
Cheers,
PatternNut
Start Free Trial