I want to sort my TableView by distance, but I have mixed up:( Please help me if You can, I would appreciate it, really :(
I have an array with 100 objects.
You have to choose the index of your array:
let mallLocate = CLLocation(latitude: malls[0].latitude, longitude: malls[0].longitude)