Array Sort, 1d Array

Get help using Construct 2

Post » Fri Jun 07, 2013 4:55 pm

I'm not sure I am understanding how the Array.Sort action works in construct 2.

If I have an array with a width of 10, populate it with 10 numbers, then sort it. Should it rearrange all the array values in ascending order?

So if Array.at(0) = 200 and Array.at(9) = 100, should it move 100 to index 0 if 100 is the lowest number of the 10?
B
101
S
32
G
11
Posts: 1,546
Reputation: 21,727

Post » Fri Jun 07, 2013 5:06 pm

OK, I figured it out. That's exact what it does, which is what I thought but I couldn't get it to work right :).
B
101
S
32
G
11
Posts: 1,546
Reputation: 21,727


Return to How do I....?

Who is online

Users browsing this forum: Hassan Hackmi, kainrazial, t redeemed t and 8 guests