Using the Elasticsearch PHP API to do an ascending sort is simple:
$params['sort'] = array('updated_at');
However I found performing a descending sort much less intuitive. Eventually I figured out it should be:
$params['sort'] = array('updated_at:desc');
Thanks for this. I was wrongfully doing it with:
$params[‘sort’] = [‘updated_at’ => ‘desc’];