Sort an array of Vertices by their Y element

I have an array of vertices. I need to somehow sort these vertices by their Y component.
Can anyone suggest how this might be accomplished?

You can loop the array to build a TMap (Float, Vector), then sort the indexes.

Gives this a try. It should get you sorted.

As events to break down the process.

As a Function that clears and replaces the original array values.

2 Likes