How to List.Sort(Comparer)

Vong 2 years 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:
Unity Version:
Scripting Backend:
.NET Version (API Compatibility Level):