Sort a Two-Dimensional Array on Any Element
Category:
Lists, Collections and ArraysType:
SnippetsDifficulty:
IntermediateAuthor:
EthanVersion Compatibility: Visual Basic 6, Visual Basic 5
More information:
This subroutine sorts one or two dimensional arrays. Just pass the Array filled with data to sort and the element to sort on. It uses a three dimensional array to swap (Shell Style) and sort. This procedure will sort numeric and string data. A demo application which calls the function is included.
Instructions: Click the link below to download the code. Select 'Save' from the IE popup dialog. Once downloaded, open the .zip file from your local drive using WinZip or a comparable program to view the contents.
Download sortarray.zip