Sort list of Vector2's by distance to game object

I’ve looked all over for a straightforward answer to this and I can’t find one. I have a list of vector2s (it can be a list or an array, whatever is easier to do this code) and I need them sorted by distance they are to a game object. So I end up with a list or array with the top one being closest the 2nd, being the next closest and so on. Language is C#.

The List class has a Sort method that takes a delegate to define a sorting function:

// C#
Vector2 pos; // your reference point.
List<Vector2> list; //your list of vectors

list.Sort((v1,v2)=>(v1-pos).sqrMagnitude.CompareTo((v2-pos).sqrMagnitude));