I am new in AngularJS...I created a filter on an output data. Next I need to sort those array data based on a dropdown selected item. I am not getting it.The filter processing is done in the 3rd directive. Any help is appreciated.
$scope.options=[
{label: 'Name', value:1,submenu:null},
{label: 'Age', value:2,submenu:null},
{label: 'Country', value:3,submenu:[
{label:'India',value:1},
{label:'China',value:2},
{label:'Singapore',value:3},
{label:'London',value:4}
]}
];
<select ng-model="model1" ng-options="opt as opt.label for opt in options">
</select>
here is the plunker http://plnkr.co/edit/BFEJQo8Zp2eukdgP9BKM?p=preview