从parse.com获取数据时添加orderby子句

I am tryng to fetch data from parse.com but its not allow to skip more than 10000 data so for doing it in a alternate way i have to use order by

My code is

$request = 'skip='.$max.'&limit=1000';

$url = "https://api.parse.com/1/classes/_Installation" . "?".$request;
// $ch = curl_init($url); 
curl_setopt($ch,CURLOPT_URL,$url); 
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch,CURLOPT_RETURNTRANSFER, true);  
$response = curl_exec($ch);  

$parse_data=json_decode($response,true);

I'm trying to use this concept https://www.parse.com/questions/paging-through-more-than-10000-results

but i don't know how to use orderby in curl code.

please help

As API docs say:

You can sort by multiple fields by passing order a comma-separated list. To retrieve documents that are ordered by scores in ascending order and the names in descending order:

Example for you:

$request = 'skip='.$max.'&limit=1000&order=your_order_field';

You can choose if order should be ascending or descending by adding -:

$request = 'skip='.$max.'&limit=1000&order=your_order_field';//ASC
$request = 'skip='.$max.'&limit=1000&order=-your_order_field';//DESC