android - Flutter Firestore,按日期排序数据
问题描述
这是我的搜索代码。我正在使用此代码从 Firestore 获取卡。我正在尝试按日期设置我的卡片排序。
我怎样才能做到这一点。感谢帮助。
class SearchService {
List<Future<QuerySnapshot>> searchByName() {
return [
Firestore.instance
.collection('dis')
.where('no')
.getDocuments(),
];
}
}
解决方案
推荐阅读
- ruby - Ruby:无法访问全局变量,不是以 $ 开头
- python - 如何迭代抓取 url 列表中的所有表格?
- makefile - 如何将共享库链接到生成文件
- mysql - BigQuery - 在列或另一个列上左连接两个表
- angular - Javascript 模拟文件,如 input="file" 上传
- python - 无法在 Python Selenium - Chrome 中单击“保存”B 按钮
- vue.js - 在引导 vue 中使用文件和数组
- pygame - AttributeError:“pygame.Surface”对象没有属性“get_rect”
- c# - 在 C# 中使用字母和数字 (code="BC1") 属性对 XML 进行排序
- python - Pygame rect.center 属性