As I understand it, the problem you are facing is that when you select one of the order options on the search results page, ordering is performed, but all entries are displayed on the page, and are not limited to the results of the initial search.
, ( searchresults.php) . "Resultsorder", "formorder". , . , script, search_query.php $_POST $_GET, , . , elseif ($ alllistings) { " search_query.php. , " resultsorder" , script search_query.php , .
, "resultsorder". HTML :
<input type="hidden" id="searchLocation" name="searchLocation" value="California" />
, . "resultsorder" . , script, , , , .
, "searchresults.php" - :
<form name="formorder" method="POST" [ETC]>
<select name="resultsorder" onChange="formorder.submit();">
[OPTIONS]
</select>
<input type="hidden" name="location_level1" id="location_level1"
value="<?php echo $location_level1; ?>" />
<input type="hidden" name="beds" id="beds" value="<?php echo $beds; ?>" />
</form>
, - .