Sort list by points through average vector

Hi, I’m not sure how to sort this list by the sorted points list.Is it possible?

pulled the guts out of the node to get the answer