I have a select populated by a key/value object in Angular.
$scope.event_types = {
"CASE_STATE_CHANGE": "Case state change",
"NEW_ISSUE": "New Issue",
"CASE_REVERT": "Case Revert".......}
etc
However when I do an order by, it doesn't work.
<select
class="form-control"
name="chase2"
id="chase2"
ng-model="eventTypeFilter"
ng-change="updateEventFilterInput(eventTypeFilter)"
ng-options="key as value for (key , value) in event_types | orderBy:'value'">
Is this possible with this kind of array?