Fixed the filter acording to preferences. Now it filters sales whose
distance is less then the MaxDistance in preferences. Also, if
preference is Zero, it shows unlimited distance, or unlimited number of
sales.