native sorting by distance