additional spec fixes

This commit is contained in:
Albert Yi
2018-09-04 14:01:35 -07:00
parent 13c2b4f5d0
commit 30a5d745a0
2 changed files with 2 additions and 2 deletions

View File

@@ -24,7 +24,7 @@ module TagAutocomplete
def count_sort(query, words)
words.uniq.slice(0, LIMIT).sort_by do |x|
x.post_count * x.weight
x.post_count.to_i * x.weight
end.reverse
end