当我按ASC排序时,我需要在顶部记录带有空值的记录
<tr ng-repeat="footballer in footballers=(footballers | orderBy:predicate)">
predicate : ['team.name','id]
Run Code Online (Sandbox Code Playgroud)
有些球员没有团队,使团队object == null和team.name==null,我需要让他们在上面
我想重写sort函数,但我需要保存谓词