I am working with an object that has the following structure:
{
3019: 'Javascript',
3046: 'Css'
}
After that, I display this object in a select
element like this:
<select
ng-model="langChoosed"
ng-options="key as value for (key, value) in progLanguages"
></select>
I am trying to figure out how to sort the items inside the select. The orderBy
filter only seems to work on arrays. Is there a way to make it work with objects?