I'm trying to order a list of items in anguarjs based on an input text, so if i write in my input "author" the list will be ordered by author
my code is this
<input type = "text" ng-model = "sort">
<ul class = "list-unstyled">
<li ng-repeat = "comment in dishCtrl.dish.comments | orderBy: sort">
<blockquote class = "blockquote">
<p>{{comment.rating}} Stars </p>
<p>{{comment.comment}}</p>
<footer>{{comment.author}}, {{comment.date | date}</footer>
</blockquote>
</li>
It doesnt work, I already searched but can't find this kind of example.