Skip to content

Search Results Prioritization: Countries Starting with Search Value Should Be Shown First #705

Open
@JagdishK99099

Description

I'm using react-phone-input-2 and noticed an issue with the country search functionality. When I search for a country (e.g., typing "M"), the results do not prioritize countries that start with the search value. Instead, all countries containing the search value (anywhere in the name) are shown in no particular order.

Expected Behavior:

Countries whose names start with the search value (e.g., "M") should appear first in the search results.
Other countries containing the search value should follow.

Activity

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions