Sorting arrays using sorting function


#1

Hi, all!
How do you sort Array by Atan2 value of coordinates?
Only way I found is to create ad-hoc class which overrides cmp operation, but it looks like really overkill…


#2

There is Urho3D.Sort with predicate, why no?


#3

The predicate part is not exported to AngelScript, which makes using it quite a challenge… :frowning: