This may be a case of old/incorrect GitHub API documentation, but according to their docs the default for this...
$test = $this->client->api('issue')->milestones()->all($org, $repo);
...should be for results to be returned in ascending order by due_date. I get descending order.
Regardless of the defaults, it would be convenient if this method accepted an additional (optional) config parameter to pass these settings.