Add the distance to objects found and sort according to it