I am using PHRETS to make a search query but I am having trouble finding documentation on sorting the results.
Also, are there any other optional arguments besides "Limit"?
$results = $rets->Search("Property","RESI","(City=|Victorville,Hesperia,Apple Valley),(Status=|A)",["Limit"=>5]);
Thanks In Advance!
I have gone through similar situation and what I did is splitting the query and loop through it, to get the partially sorted data. for eg: To sort your query by city, can split the query like this,
Then loop through these queries.
Similarly, we can split the query based on each year/month or based on any listing status etc.
Hope sorting option will be provided by RETS in near future.