VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Sort String Arrays without Swapping Strings

M. J. Highlander  (20 Submissions)   Miscellaneous   VB Script   Intermediate   Wed 3rd February 2021

Sort Array without Swapping Strings
The latest Sort submission by Ulli, whcih is unquestionably superior and advanced is, well, advanced! so i cooked-up this sort which is very simple, the algorithm used is shell sort but instead of swapping strings, we swap their index, and finally return an array of sorted indexes, well sort of (pun intended ;-)

Inputs
String Array to be Sorted with the option of Ignoring Case

Assumes
assumes u have VB6 !!!

Returns
Array (of type Long) of Sorted Indexes (indices) that can be used to access the original unchanged array according to the sorted order.

Side Effects
who knows :-p

Rate Sort String Arrays without Swapping Strings (3(3 Vote))

Download Sort String Arrays without Swapping Strings

Sort String Arrays without Swapping Strings Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters