I'm using the NoCode-app Flutterflow - and I need a piece of code ;) to sort a firestore-collection. I'm sure it can't be that hard, but I'm trying this for 2 days now...
I want the function to return a sorted list, based on a string-argument.
When I create a "custom function" (that's how a piece of code is called in FlutterFlow) I get this template:
import 'dart:math' as math;
List<DocumentReference> sortImages(
List<DocumentReference> listdocument,
String sortBy,
) {
return listdocument; '<<< what comes here? How do I sort?
}
How do I sort "sortImages" now by the argument "sortBy" and return it?
As you see I don't really have an idea of flutter/darts, and a NoSQL-db is also new to me... but I keep fighting to learn more every day!
Thanks a lot!