Archive 19/01/2023.

Sorting arrays using sorting function

slapin

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…

Eugene

There is Urho3D.Sort with predicate, why no?

slapin

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