Adds sorting by distanceFromOrigin