elasticsearch/elasticsearch — pull request #5962 by mikemccand (2014-04-28 20:13:14+00:00)
Title: add tie-breaker by suggestion string when sorting candidates

After upgrading to Lucene 4.8, when BytesRef.hashCode changed to MurmurHash3, we see test failures in SuggestSearchTests because the phrase suggester was relying on HashSet sort order. I think this change should fix it but I'm not very familiar with this code ....