
Originally Posted by
Ellis Dee
Does that sorting algorithm have a name or did you make it up from scratch?
I got the basic code from someone named MrMac awhile back (not sure if he is on this forum or not),
Code:
For i = 0 To UBound(d) - 1
For j = i + 1 To UBound(d) - 1
If d(i) > d(j) Then
Dtmp = d(j)
d(j) = d(i)
d(i) = Dtmp
End If
Next j
Next i
was posted for sorting numbers in a listbox since VBs listbox sort falls short for sorting numbers, so I just expanded it for this sort by item data usage.