Advertisement
4_2005-2006 VB function enhancement #152969

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.

AI

Résumé par IA: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Code source
original-source
Upload
Commentaires originaux (3)
Récupéré via Wayback Machine