Array Sorts Class

Entisoft Tools 2.0 Object Library
Version 2.0.6 Released 1999/11/14 03:27
<-- Previous || Index || Main || Topics || Next -->

Declarations Section, IsVariantVectorSorted Function, PartitionVariantVector Function, SortGenerateKeys Function, SortGenerateReverseKeys Function, SortUniqueVariantVector Function, SortVariantMatrixRows Function, SortVariantMatrixRowsSample Sub, SortVariantMatrixRows2ndSample Sub, SortVariantMatrixRowsKeysOnly Function, SortVariantMatrixRowsKeysOnlyFast Function, SortVariantMatrixRowsToKeyOrder Function, SortVariantVector Function, SortVariantVectorSample Sub

Declarations Section
Is Variant Vector Sorted Function
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.
Partition Variant Vector Function
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.
Sort Generate Keys Function
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.
Sort Generate Reverse Keys Function
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.
Sort Unique Variant Vector Function
Sort Variant Matrix Rows Function
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).
Sort Variant Matrix Rows Sample Sub
Sort Variant Matrix Rows 2nd Sample Sub
Sort Variant Matrix Rows Keys Only Function
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).
Sort Variant Matrix Rows Keys Only Fast Function
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.
Sort Variant Matrix Rows To Key Order Function
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.
Sort Variant Vector Function
"Sort Variant Vector Elements" Non-recursive Quick Sort of the elements of a one-dimensional variant array.
Sort Variant Vector Sample Sub

This Windows-based ActiveX DLL provides many useful routines through its function-bearing and data structure classes. Consult the Help file for more information, or call us at 1-310-472-3736. For the latest news and files, visit our home page on the World Wide Web: http://www.entisoft.com

Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.