Do you mean to reverse the order of the sorting?
not just reverse, but change the sorting so the stores I want on top of the list are. at the very least sort by ID number or in the order entered into the system.
If you open the /frontend/wpsl-ajax-functions.php you will see two lines like this.
$sql_part = ' ORDER BY distance';
$sql_part = ' HAVING distance < %d ORDER BY distance LIMIT 0, %d';
One is used if the autoload option is enabled, the other one when the user performs a search. You can replace the ORDER BY distance with ORDER BY wpsl_id to make it sort by store id.
Thank you, very helpful. That is what I needed.
What would I use if I wanted to make it sort by store name?
@shawnfor3 You can try this instead of ORDER BY distance ( untested ):
ORDER BY store
@tijmen and, just to be clear, this would order by store if someone clicks Deny on the location permission prompt?
I would love to have sort alphabetically by store name in the CMS options.