findAllByQuery method
Returns all entities that match the given query
sorted by the given
Implementation
@override
Future<List<T>> findAllByQuery(Query query, Sorted sort) {
var comparator = MapSorting.parse(sort.sort);
var values = _data.entries
.where((element) =>
MapMatcher.evaluate(query.filter, element.value, system))
.sorted((a, b) => comparator.compare(a.value, b.value))
.map((e) => EntityIntermediate(e.key, e.value))
.map((e) => analysis.decode(e));
return Future.value(values.toList());
}