Bob Schneider
asked on
Quicker Sort
I am currently doing a lot of bubble sorting of arrays. Is there a faster way than this:
For x = 0 To UBound(SiteRslts, 2) - 2
For y = x + 1 To UBound(SiteRslts, 2) - 1
If CStr(SiteRslts(6, x)) > CStr(SiteRslts(6, y)) Then
For z = 0 To 6
TempArr(z) = SiteRslts(z, x)
SiteRslts(z, x) = SiteRslts(z, y)
SiteRslts(z, y) = TempArr(z)
Next
End If
Next
Next
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Problem with a recordset sort is that some of the array fields are being populated via a function (to avoid getting more complicated of a join than my cerebellum can manage). I will consider that though, thanks...
Still haven't checked out the 4Guys...solution yet...very soon..
Still haven't checked out the 4Guys...solution yet...very soon..
ASKER
Learned a lot about sorting. Thanks all!
ASKER