Let _compileSort handle empty sorting rules. So the line that says: "sort by distance by default" will work