// search/request/sort.asciidoc:30

[source, php]
----
$params = [
    'index' => 'my_index',
    'body' => [
        'sort' => [
            [
                'post_date' => [
                    'order' => 'asc',
                ],
            ],
            'user',
            [
                'name' => 'desc',
            ],
            [
                'age' => 'desc',
            ],
            '_score',
        ],
        'query' => [
            'term' => [
                'user' => 'kimchy',
            ],
        ],
    ],
];
$response = $client->search($params);
----
