Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: optimize search results order #280

Merged

Conversation

adispring
Copy link
Member

Current search only filter functions which contains the search keyword, but with no further sort.

I add some sort strategy to make the search more readable. the strategy is:

  1. The function that completely matches the keyword is at the top;
  2. Those starting with keywords are in the second echelon;
  3. Others are in the third echelon;

Use keyword path as an example:

image

@adispring
Copy link
Member Author

Improve this issue: #182

@kedashoe
Copy link
Contributor

kedashoe commented Apr 9, 2023

Looks good to me! Will leave open for a bit for other comments

@kedashoe kedashoe merged commit c796454 into ramda:master Apr 11, 2023
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.

None yet

2 participants