parse static method
Implementation
static MapComparator parse(SortExpr? expr) {
switch (expr) {
case null:
return _NoSort();
case SortScalar():
return _SortScalar(expr.field, expr.descending);
case SortCombine():
return _SortCombine(expr.sorts.map((e) => parse(e)).toList());
}
}