elasticsearch/elasticsearch — pull request #7588 by colings86 (2014-09-04 11:26:23+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