I'm trying to see if there is a way to default the views proximity filter to input zero for proximity values when the filter is empty, so we can sort the data using a different field by default.
What I've got currently
A view that lists location nodes (that use the geolocation module) using the 'Content' show/render. The format settings is set to force fields, so we can set the proximity field information. The view has an exposed proximity filter using Google Geocoding, and the proximity field is set to center off of this proximity filter.
Additionally, the view is sorted first by proximity, and second by title.
Proximity filtering works
When users type in an address, the view sorts by proximity, and works as expected.
A user visits the page, the locations are sorted by title alphabetically, then if an address is entered into the filter the locations are sorted by proximity first and then title second.
What happens now
When the page is initially loaded and nothing is entered into the filter the proximity the locations appear to be sorted in an arbitrary/random order. If you display the proximity, it's clear it's still sorting by proximity, but I don't know based on what.
Are there any suggestions to configure this differently? Are there hooks I could access to override the proximity value to zero if the filter is empty?
I've Googled a fair bit, and tried searching the issue queue, but haven't been able to find any direction that way so far. So thanks in advance to anyone that is able to offer any help or direction.