elasticsearch/elasticsearch — pull request #7662 by colings86 (2014-09-09 14:59:51+00:00)
Title: Aggregations: Adds ability to sort on multiple criteria

The terms aggregation can now support sorting on multiple criteria by replacing the sort object with an array or sort object whose order signifies the priority of the sort. The existing syntax for sorting on a single criteria also still works.

Contributes to #6917
Replaces #7588