nodebb-plugin-mentions
nodebb-plugin-mentions copied to clipboard
Mentions strange sort with groups
Hello !
I don't understand sort of mentions autocomplete list. For example, when I begin to type @a
in composer on nodebb community forum, it gives

Is it possible to have a greatest sorting ? If @a is typed, only propositions beginning with the a letter should be proposed at first (in alphabetical order), for groups and users. No ?
It's annoying if there are many many mentions possibles because the dropdown has only ten items in it... Bad items are showing first and we can't see good items...
You're correct, it's bugged out, and has been for quite some time. What's supposed to happen is a list of matching users and groups are returned. It doesn't seem like the groups are filtered properly (or at all!) :smile:
Looks like it's matching anything that contains a instead of those starting with a. Might be intentional.
If it is intentional, it's not great because of the limitation to ten items in the dropdown...
For example, if I have many groups with close names (promo-00-01, promo-01-02, etc...), we can't see all of these (see https://github.com/julianlam/nodebb-plugin-mentions/issues/118) and there can be unshowed items in dropdown also by a replacement by other terms which don't begin with p letter...
I think the dropdown selector could be improved (see also https://github.com/julianlam/nodebb-plugin-mentions/issues/119).
;-)