Im having issues with sorting an array of entities into order from closest to furthest.
Im using this code to get all players in the server
Found = ents.FindByClass("player")
I need to then sort that list from closest to me to furthest from me.
I can’t think of any way other than bubble sorting (This) which i REALLY don’t want to do since this code will be running on tick