2
实现排序列表已经尝试过:我如何通过最新的与公司的FireStore查询
this.afs.collection('profiles', ref => {
return ref.where('createdAt', '>', 0).orderBy('createdAt', 'desc');
});
,但它不能正常工作。
实现排序列表已经尝试过:我如何通过最新的与公司的FireStore查询
this.afs.collection('profiles', ref => {
return ref.where('createdAt', '>', 0).orderBy('createdAt', 'desc');
});
,但它不能正常工作。
见我的答案在这里,这可能有助于https://stackoverflow.com/questions/46745076/how-to-orderbyvalue-onsnapshot-using-firestore –