diff --git a/client/js/controls/tag_auto_complete_control.js b/client/js/controls/tag_auto_complete_control.js index 8626b5a..a9fb7f0 100644 --- a/client/js/controls/tag_auto_complete_control.js +++ b/client/js/controls/tag_auto_complete_control.js @@ -25,7 +25,7 @@ class TagAutoCompleteControl extends AutoCompleteControl { return Array.from(allTags.entries()) .filter(kv => match(transform(kv[0]), text)) .sort((kv1, kv2) => { - return kv2[1].postCount - kv1[1].postCount; + return kv2[1].usages - kv1[1].usages; }) .map(kv => { const category = kv[1].category;