// This file is autogenerated, DO NOT EDIT
// search/search-your-data/sort-search-results.asciidoc:631

[source, python]
----
resp = client.search(
    track_scores=True,
    sort=[
        {
            "post_date": {
                "order": "desc"
            }
        },
        {
            "name": "desc"
        },
        {
            "age": "desc"
        }
    ],
    query={
        "term": {
            "user": "kimchy"
        }
    },
)
print(resp)
----
