elasticsearch/elasticsearch — pull request #1797 by carwashi (2012-03-20 21:02:03+00:00)
Title: Add mean ordering for terms stats

Added mean and reverse_mean order options to terms stats. Also made
ordering based on double values more robust by using Double.compare().