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 -

Edited 5 Months Ago by jeffersonalomia

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 -

Edited 5 Months Ago by jeffersonalomia

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

Thanks,

  • Jeff -

Edited 5 Months Ago by jeffersonalomia

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.

This question has already been answered. Start a new discussion instead.