Skip to content

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

Open
peterfabian wants to merge 3 commits intotrunkfrom
fix/20575
Open

Changed ordering of matched strings in the dropdown--start of string …#21
peterfabian wants to merge 3 commits intotrunkfrom
fix/20575

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