0

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 by jeffersonalomia

2
Contributors
8
Replies
19
Views
1 Year
Discussion Span
Last Post by jeffersonalomia
0

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 by jeffersonalomia

0

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

Thanks,

  • Jeff -

Edited by jeffersonalomia

0

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.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.