I try to mix where
and orderBy
but this code doesn't work:
Stream<QuerySnapshot> getTop10Songs() async* {
yield* fireStore.collection('programs').where('title', isEqualTo: 'Lama').orderBy('subtitle').limit(2).snapshots();
}
But if I remove orderBy('title').
. It works fine. How should I do? Thank you