I have created a Angular Select box for countries. My array looks like this:
AD: "Andorra"
AE: "United Arab Emirates"
AF: "Afghanistan"
AG: "Antigua and Barbuda"
AI: "Anguilla"
And my NgRepeater looks like this
<li nya-bs-option="(k, v) in fields.country.available" data-value="v" data-label="{{v}}">
As you can see, The 'Key' is automatically getting alphabetically arrange in order. However I wish for the 'Value' to be arranged in alphabetical order. I have tried:
<li nya-bs-option="(k, v) in fields.country.available | orderBy:'v'" data-value="v" data-label="{{v}}">
But this didn't work. Can anyone help?