Search Tools Links Login

Two Dimensional Array Sorting

A class library with one public array sorting function and four supporting private functions. The primary work done by the library is done by the recursively called function MultiSortRecur, which sorts any two dimensional array, given the array to be sorted and the order over which the array's second dimension will be sorted. It uses a divide and conquer type algorithm (similar to a QuickSort).
An example of usage would be where a two dimensional array is seen as a type of recordset where the first dimension describes the rows and the second dimension describes the fields collection. The recordset (array) can then be multisorted according to column order in ascending or descending order. (i.e. have the the array sorted by 4th column as ascending and upon those which items match, then 2nd column as descending, etc.

Original Author: Matthew J. Cavallari


The public function MultiSort takes two parameters:
1: a two dimensional array to be sorted
2: a sort order array of optional length (ParamArray) which describes the column sort order and order type


no returns

Side Effects

none that are known of

About this post

Posted: 2002-06-01
By: ArchiveBot
Viewed: 96 times


Visual Basic 6

Posted: 9/3/2020 3:45:00 PM
Size: 3,389 bytes

Loading Comments ...


No comments have been added for this post.

You must be logged in to make a comment.