如何在智能表中按日期对数据进行排序?有了st-sort,它就不那么好了.
<table st-table="displayedCollection" st-safe-src="playerCollection" class="table table-hover"> <thead> <tr> <th st-sort="id" class="hover">Id</th> <th st-sort="firstname" class="hover">Jméno</th> <th st-sort="lastname" class="hover">Příjmení</th> <th st-sort="registrationDate" class="hover">Datum registrace</th> </tr> </thead> <tbody> <tr ng-repeat="player in displayedCollection"> <td class="hover">{{player.id}}</td> <td class="hover">{{player.firstname}}</td> <td class="hover">{{player.lastname}}</td> <td class="hover">{{player.registrationDate}}</td> </tr> </tbody> </table>
谢谢你的回答.