Hi guys,
I was wondering if anyone could help me. This shouldn't be very difficult to achieve, but since I'm back to work this week, I don't have much time to code...
Anyway, here it goes:
I have 3 arrays of size n. For simplification purposes, n = 6.
Let's use these values as example.
Now, what I need is a B4A algorithm which sorts (descending) array C using Quicksort.
I want these arrays to be "linked horizontally", so that both A and B arrays are also sorted according to the values of C.
This isn't related to databases at all, so using MySQL commands won't work.
Also, I specifically need this to be done with arrays, I don't want to use lists.
I was wondering if anyone could help me. This shouldn't be very difficult to achieve, but since I'm back to work this week, I don't have much time to code...
Anyway, here it goes:
I have 3 arrays of size n. For simplification purposes, n = 6.
B4X:
Dim a(6) as Float
Dim b(6) as Float
Dim c(6) as Float
Let's use these values as example.
Now, what I need is a B4A algorithm which sorts (descending) array C using Quicksort.
I want these arrays to be "linked horizontally", so that both A and B arrays are also sorted according to the values of C.
This isn't related to databases at all, so using MySQL commands won't work.
Also, I specifically need this to be done with arrays, I don't want to use lists.