This is my search code. I am using this code for get Card from firestore. I am trying to set sorting by date my cards.
How can I do that. Thanks for help.
class SearchService {
List<Future<QuerySnapshot>> searchByName() {
return [
Firestore.instance
.collection('dis')
.where('no')
.getDocuments(),
];
}
}