willgm / ngSelectable

AngularJS bindings for jQuery UI Selectable
MIT License
21 stars 8 forks source link

Not correct work when orderBy :'-Any_Key' #2

Closed borm closed 9 years ago

borm commented 9 years ago

Subj

<li .... ng-repeat="friend in friends | orderBy :'-name'" .....</li>

http://codepen.io/anon/pen/zGGrwJ

willgm commented 9 years ago

@bORm, that's because you are not giving the same list to the ngSelectable directive on the attribute selectable-list, which shoud have the same filters:

<ul ... selectable-list="friends | orderBy :'-name'" ...>

http://codepen.io/anon/pen/xGGPdL