Describe the bug
The slash command completion sometimes sorts (and therefore completes when pressing enter) types that only contain the searched word in a description over types that have the searched word as their title
To Reproduce
Steps to reproduce the behavior:
- Go into a page
- Type /title
- The ‘note’ type is sorted above and selected instead of the ‘title’ block type
Expected behavior
I expect the sort to show ‘Note’ and ‘Page’, but keep them below ‘Title’ as the appearance of the searched term only appears in their description, similar to the behavior in 0.22.3.
System Information:
- OS: Linux python 5.10.90 #1-NixOS SMP Wed Jan 5 11:40:34 UTC 2022 x86_64 GNU/Linux
- Device Manufacturer/Model: Dell G3 15 3590
- Anytype Version: 0.23.5
Additional context
Screenshot (current version where this bug appears)
Screenshot of 0.22.3 where this bug does not occur