0

How to List.Sort(Comparer)

AiSard 2 weeks ago 0

For Generic Lists, how would I go about sorting them? I've been under the assumption that if I just search long enough in Unit Options, I'll stumble across something that will allow me to sort a List but no dice so far. I've got as far as building a Comparer but have no idea where to plug it in to...

Unless there is an alternative and I'm just missing it entirely?

My specific use case is sorting Vec2 according to rotation around a center point. But I'd like to know how to sort the basic stuff like integers as well tbh.

Bolt Version:
v.1.4.1b5
Unity Version:
2018.3.3f1
.NET Version:
net4