README.md

December 4, 2022 ยท View on GitHub

Two Dimensional Array Sorting

Description

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.

More Info

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

none that are known of

Submitted On2000-03-29 11:19:10
ByMatthew J. Cavallari
LevelBeginner
User Rating4.7 (14 globes from 3 users)
CompatibilityVB 5.0, VB 6.0
CategoryVB function enhancement
WorldVisual Basic
Archive FileCODE_UPLOAD43893292000.zip