Sort one array by values in another

Get help using Construct 2

Post » Mon Feb 17, 2014 2:05 am

Is it possible to sort an array in C2 by values in another array (of the same size) without writing a custom sort function?

Usually languages that make this functionality available do it by returning a vector of the sort index of array A, and allowing you to sort array B by a vector of indices. I'm not seeing anything like this in C2 but I thought I'd ask if there was some simple way I was overlooking without having to write my own sort function.
B
11
S
2
G
3
Posts: 283
Reputation: 1,968

Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 21 guests