ElasticSearch Aggregation Result In Asending Order of any Field Value (Instead of aggregation field count order)

I need to get the list of Field values from the aggreation query. The
result is always sorted based on the count. But I want that to be the order
of some other Field value. How to get it.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/cf6975bd-25a9-4938-abd8-a23467725a48%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.