Skip to content

Making Country selector but couldn't sort by Country's name. #130

Closed Answered by dmythro
spencerchang asked this question in Q&A
Discussion options

You must be logged in to vote

Use getCountryDataList() or Object.entries() approach to get all data as array of objects and sort by any property you need.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dmythro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants