我有一个 ng-repeat:
<label ng-repeat="atp in Keywords | unique:'atp'">
{{atp}}
</label>
在 atp
,我得到:
client
animal
zoo
boat
我期望输出:
animal
boat
client
zoo
感谢您的帮助!
最佳答案
试试这个:
<label ng-repeat="atp in Keywords | unique:'atp' | orderBy:atp">
{{atp}}
</label>
关于javascript - AngularJS 按 ASC 排序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26778206/