Skip to content

Fix search result ordering for NAME sort#34

Open
yigiitcoskun wants to merge 1 commit intoGloriousEggroll:mainfrom
yigiitcoskun:fix/search-name-relevance
Open

Fix search result ordering for NAME sort#34
yigiitcoskun wants to merge 1 commit intoGloriousEggroll:mainfrom
yigiitcoskun:fix/search-name-relevance

Conversation

@yigiitcoskun
Copy link
Copy Markdown

@yigiitcoskun yigiitcoskun commented Mar 26, 2026

Search results were ordered alphabetically when sorting by NAME, which caused exact/prefix matches to appear lower (e.g. "Zen Browser").
I updated the NAME sorting behavior during search to rank more relevant matches higher:

  • exact name match first
  • then prefix matches
  • then substring matches (with stable alphabetical tie-break)
    Tested locally by searching and confirming that exact/prefix matches appear at the top.

Fixes #30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flatpost search only in alphabetical order since last update to 1.2.0

1 participant