i have data in table: Id, word, score , score_list.
score are 0.4, 0.2, -0.5, 0, -0.3 ....
in score_list i have positive, negative , neutral.
How can i sort data with select by score_list?
This is html
<select class="form-control">
<option>all</option>
<option>positive</option>
<option>negative</option>
<option>neutral</option>
</select>
<ul class="list">
<li ng-class="{positive: item.score > 0, negative: item.score < 0, neutral}" ng-repeat="item in words | orderBy: sort | filter: search ">
{{item.word}} {{item.score}}
</li>
</ul>
Is there any quick way to organize it.
in Js i have this:
http.get('select.php')
.success(function(data){
$scope.words = data;
})