小编Ola*_*Ola的帖子

按日期排序,但最后有空值

我正在查询 firestore:

this.todosCollection = this.afs.collection('todos', ref => ref.where('owner', '==', this.userId). orderBy('due', 'asc'));
Run Code Online (Sandbox Code Playgroud)

待办事项按我想要的升序排列,问题是没有截止日期(空)的待办事项排在第一位。我希望他们排在最后。这在 orderBy 或其他技术中可能吗?

firebase angularfire2 google-cloud-firestore

9
推荐指数
1
解决办法
2450
查看次数