sort_by distance for solr

multiple sort bys with a distance in them would fail as it wouldn't
convert it to a geodist() sort

issue #893 #894