orderBy method
Implementation
Query orderBy(String field, {bool descending = false}) {
final eggs = collection.getEggs();
eggs.sort((a, b) {
if (descending) {
return b[field].compareTo(a[field]);
} else {
return a[field].compareTo(b[field]);
}
});
return this;
}