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!
The best location to find this information is by downloading the RETS official documentation for the RETS Server you are using (ex: 1.7.2).
This would be found here: https://www.reso.org/specifications/
In this documentation, which is under 7.4 Optional Request Arguments, all of the following are optional arguments:
Count, Format, Limit, Offset, Select, Restricted Indicator, Standard Names
For returning the results in a sorted order, the RETS spec does not have a way to do this, but future RETS specs may include this feature.