angular js drop down value order change

I need to change drop down value order. this is my drop down

<select ng-model="reportSearch.charityId">
    <option value="">--- All Charity ---</option>
    <option  ng-repeat="item in charityList | orderBy:'+value'">

this is the my demo. in my demo i need to 'Engagement1 Name' show as the 5th option in the drop down. how i change that order.




You can sort by the key.

<option  ng-repeat="item in charityList | orderBy:'+key'">{{item.value}}</option> 


Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.