Making Country selector but couldn't sort by Country's name. #130
-
EX: South Africa coutryCode is ZA, will be sort on the list. Any suggestions? |
Beta Was this translation helpful? Give feedback.
Answered by
dmythro
Dec 10, 2023
Replies: 1 comment
-
Use |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
dmythro
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use
getCountryDataList()
orObject.entries()
approach to get all data as array of objects and sort by any property you need.