Scirra / Construct-feature-requests

A place to submit feature requests and suggestions for Construct.
https://www.construct.net
11 stars 1 forks source link

Array: Expand Sort/Shuffle #299

Open XHXIAIEIN opened 4 months ago

XHXIAIEIN commented 4 months ago

Reviewed guidelines

Checked for duplicate suggestions

Summary

Currently, when sorting an Array, axes are independent of each other. If we want to sort a 2D array, their association will be broken.

Apple     12    3
Banana    24    6
Carrot    32    8
Shroom    12    3
Kiwi      6     2

vanilla Sort Y

Apple     6     2
Banana    12    3
Carrot    12    3
Kiwi      24    6
Shroom    32    8

Expected

Apple     12    3
Kiwi      6     2
Shroom    12    3
Carrot    32    8
Banana    24    6

Possible workarounds or alternatives

Store the header in a temp array, Operate in the temporary array, then transfer other data in sequence

2DArrayShuffle

Snipaste_2024-05-16_13-56-43

Proposed solution

Add a 'Expand' checkbox option

Why is this idea important?

Make the array for use in real environments.

Additional remarks

No response

WilsonPercival commented 4 months ago

issue299.zip