我的列标题没有使用智能表正确排序。它们不是单独排序,而是一起排序。
<thead>
<tr>
<th st-sort="field" ng-repeat="field in stat.q">{{field}}</th>
</tr>
</thead>
这是javascript。
stat.q = ["Who is the coolest?", "What is your favorite color?", "Pick a movie", "Where do you want to go?", "test rating"];