Aggregations with sorting

{
  "aggs": {
    "authors": {
      "terms": {
        "field": "author"
      },
      "aggs": {
        "most_recent_book": {
          "top_hits": {
            "sort": [
              {
                "last_publication_date": {
                  "order": "desc"
                }
              }
            ],
            "size": 1
          }
        }
      }
    }
  }
}
Results return _source of all documents which has other fields like : title, co_author, isbn, genre, rating, etc…

A UI displays these records in a tabular form with column sorting enabled. How do I apply sort on say “rating” or “co_author” for the above query.

In short the ask is :
The user wants to display titles alphabetically, the latest book of all authors.

Any suggestions?