Hello,
I'm using an API to return a collection of zip codes within a radius of a particular zip code the user will input. These will populate a list of locations, but I'm having trouble promoting the zip code input by the user to the top of the list. Sort isn't working at all.
ZIP is the location page zip code field. $city_or_zipcode is the sanitized input. $selector is the decoded JSON response as string for zip codes separated by pipes.
$producers = $locations->children("(ZIP=$city_or_zipcode), (ZIP=$selector), template=producer, limit=24");
I've even prepended the searched user zip code to $selector and it doesn't help either.
Any ideas?