sorting by distance on production
merge