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

Changed ordering of matched strings in the dropdown--start of string … #21

Open
wants to merge 3 commits into
base: trunk
Choose a base branch
from

Conversation

peterfabian
Copy link

…has higher prio.

This pull request includes a

  • Bug fix
  • New feature
  • Translation

The following changes were made

  • Term searched for by the user is passed down to sorter function, where it's used to sort the matches in a more 'natural' way, e.g. search for term po returns
  1. Poland,
  2. Portugal
  3. and only then French Polynesia.

This should close woocommerce/woocommerce#20575.

I wasn't able to run the tests, though, need to set it up some more...

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.

State dropdown not showing exact match. WA = Delaware instead of Washington
1 participant