def __call__(self, doc, context=None):
        items = _evaluate_items_expression(self._items_expression, doc, context)

        try:
            return sorted(
                items,
                key=lambda i: self._sort_expression(i, context),
                reverse=True if self.order == self.DESC else False
            )
        except __HOLE__:
            return []
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/userreports/expressions/list_specs.py/SortItemsExpressionSpec.__call__