paul-thebaud / v-phone-input

International and accessible phone input for Vuetify 3 and Vue 3.
https://paul-thebaud.github.io/v-phone-input/
MIT License
64 stars 6 forks source link

feat: preferCountries should be sorted as they are ordered on the array. #19

Closed ricardo17coelho closed 10 months ago

ricardo17coelho commented 10 months ago

Expected Behavior

If preferCountries are defined, they should be sorted as defined by the array and not alphabetically.

Actual Behavior

Defined preferCountries are sorted alphabetically

Steps to Reproduce the Problem

...
preferCountries: ['CH', 'IT', 'FR', 'DE', 'AT', 'LI']
...
paul-thebaud commented 10 months ago

@ricardo17coelho Preferred countries will now be ordered using the passed preferCountries prop in v4.1.0 :tada:

ricardo17coelho commented 10 months ago

Thx 🙏 @paul-thebaud