public void querySorted(String type,int index,boolean ascending,int page,int limit,int visibilityScope,CloudResponse<CloudObject[]> response){
  try {
    queryImpl(type,null,0,page,limit,visibilityScope,1,index,ascending,false,false,response);
  }
 catch (  CloudException e) {
    response.onError(e);
  }
}

public void querySorted ( String type , int index , boolean ascending , int page , int limit , int visibilityScope , CloudResponse < CloudObject [ ] > response ) { try { queryImpl ( type , null , 0 , page , limit , visibilityScope , 1 , index , ascending , false , false , response ) ; } catch ( CloudException e ) { response . onError ( e ) ; } }
performs a query to the server finding the objects where the sort is equal to the given value . this operation executes immeditely without waiting for commit .
