I'm trying to create a MIDI related program in Snap and I need a way to sort an array (2 dimensional list)
What I want it to do is sort the first column like it's a regular list, but keep everything else in that row attached to the original item... (this is hard to explain) I'll just give an example.
Say I have this array:
___________________
| 3 |apple | red |
| 1 |banana|yellow|
| 2 |grape | blue |
-------------------
I want to sort the rows according to the order of the first column, so it would end up like this:
___________________
| 1 |banana|yellow|
| 2 |grape | blue |
| 3 |apple | red |
-------------------
The "sort ordering with <>" block in the List Utilities category doesn't work. Can anyone help?