Re: Array sorting for user-defined data types
An interesting piece of code...
The last 2 lines puzzle me, since they it seems like a circular reference
to sub Quicksort, namely
If (inLow < tmpHi) Then Quicksort p_Array, inLow, tmpHi
If (tmpLow < inHi) Then Quicksort p_Array, tmpLow, inHi
Also, can you provide a fuller sample code with the end result being a sorted
array Descriptions().
Re: Array sorting for user-defined data types
Quote:
The last 2 lines puzzle me, since they it seems like a circular reference
that is correct it is a recursive procedure the array is not sorted in one pass so the sub is continuously called until fully sorted
there is several examples in code bank that may contain more information
@OP is there a question, or is it all working correctly?