src/Api/BaseQuery.php
public function orderBy(string $field, bool $reverse = false)
    {
        if ($reverse) {
            $field = '-'.$field;
        }

        $this->orderConditions[] = $field;

        return $this;
    }
public function orderBy(string $field, bool $reverse = false)
    {
        if ($reverse) {
            $field = '-'.$field;
        }

        $this->orderConditions[] = $field;

        return $this;
    }
public function orderBy ( string $ field , bool $ reverse = false ) { if ( $ reverse ) { $ field = '-' . $ field ; } $ this -> orderConditions [ ] = $ field ; return $ this ; }
Set the order of the items retrieved by this query.

Note that when ordering Entries by fields you must set the content_type URI query parameter to the ID of
the Content Type you want to filter by. Can be called multiple times to order by multiple values.

@param string $field
@param bool   $reverse

@return $this
Set the order of the items retrieved by this query .