Good day !! I want to sort the values of the array in vb6. Here's the sample of an array that i want to sort

arr() = {21,2,33,"c","a"}

is it possible to sort an array with values of string and integer.** If not**, is it ok if you specify how to sort the array above on vb6 language.

Thank you,
- Jeff -

Anyway just skip with my first comment. lol

How to sort array with string values? Can you give me a sample vb6 code for that.

Thanks,
- Jeff -

The code in the link in my post should work fine, just change the type of the array to string.

the code was too long.
is there any alternative for me to understand the sorting?

Thanks,

  • Jeff -

That poat I linked to contains 3 different sub routines. One of them is an insertion sort that is only 13 lines. If that is too long, I'm afraid you need to study more about sorting and what is required to make an algorithm.