diff --git a/elastic_recheck/cmd/query.py b/elastic_recheck/cmd/query.py index 46e92e86..3e040c2c 100755 --- a/elastic_recheck/cmd/query.py +++ b/elastic_recheck/cmd/query.py @@ -57,7 +57,7 @@ def analyze_attributes(attributes): # sort by hit percentage descending, and then by value ascending analysis[attribute] = sorted( analysis[attribute], - key=lambda x: (1 - x[0], x[1])) + key=lambda x: (1 - x[0], str(x[1]))) return analysis