Class Module
14 Members
★ 1 Top 20
Array Sorts Class
Entisoft Tools 2.0 Object Library · ArraySorts · 10 Functions · 0 Properties · 3 Subroutines
Declarations
Declarations
Functions that sort arrays, including support functions which have other uses. Copyright 1998 Entisoft
Section
IsVariantVectorSorted
Is Variant Vector Sorted
Determines if the elements 1..UBound of a variant array are sorted according to the given comparison type. String comparisons are used if any of the elements are Strings. Nulls are considered to be less than any other type of except Empty.
Function
PartitionVariantVector
Partition Variant Vector
Could be used by the SortVariantVector function, and possibly others in the future. Is part of the Quick Sort algorithm. See also the SortVariantVector function.
Function
SortGenerateKeys
Sort Generate Keys
Creates an array of longs where the value and the number of each element are the same. For example, lngA(1) = 1, lngA(2) = 2, etc.
Function
SortGenerateReverseKeys
Sort Generate Reverse Keys
Assuming Keys(1) = 2, Keys(2) = 3, Keys(3) = 1, creates an array of backward pointers such that Revs(1) = 3, Revs(2) = 1, Revs(3) = 2. Assumes that values within vKeys(Lower..Upper) are within the range Lower..Upper.
Function
SortUniqueVariantVector
Sort Unique Variant Vector
View VB6 signature, parameters, and usage notes.
Function
SortVariantMatrixRows
Sort Variant Matrix Rows
Non-recursive Quick Sort of the elements of a two-dimensional variant array. The column comprising the sort key is passed in vKeysInDim1(1..UBound).
★ Top 20
Function
SortVariantMatrixRowsKeysOnly
Sort Variant Matrix Rows Keys Only
Non-recursive Quick Sort of the KEYS to a two-dimensional variant array. The column comprising the sort key is passed in vKeysInDim1(1..UBound).
Function
SortVariantMatrixRowsKeysOnlyFast
Sort Variant Matrix Rows Keys Only Fast
Non-recursive Quick Sort of the KEYS to a two-dimensional variant array. The column comprising the sort key is passed in vKeysInDim1(1..UBound). Similar to SortVariantMatrixRowsKeysOnly , except only supports String and numeric values within sort keys. Null and Empty and Object and VariantArray type values are not supported.
Function
SortVariantMatrixRowsToKeyOrder
Sort Variant Matrix Rows To Key Order
Orders the rows of a variant matrix in-place given a long vector of sort keys. The keys are updated to reflect the sorted order of the records which is then also the physical order.
Function
SortVariantVector
Sort Variant Vector
"Sort Variant Vector Elements" Non-recursive Quick Sort of the elements of a one-dimensional variant array.
Function
SortVariantMatrixRows2ndSample
Sort Variant Matrix Rows 2nd Sample
View VB6 signature, parameters, and usage notes.
Sub
SortVariantMatrixRowsSample
Sort Variant Matrix Rows Sample
View VB6 signature, parameters, and usage notes.
Sub
SortVariantVectorSample
Sort Variant Vector Sample
View VB6 signature, parameters, and usage notes.
Sub