Added possibility to order by distance with respect to the reference
location.