(case_updates)
return sorted(case_updates, key=_update_order_index)
Order case updates for a single case according to the actions
    they contain.

    This is to ensure create actions are applied before update actions.
Order case updates for a single case according to the actions
    they contain.
Order case updates for a single case according to the actions they contain .
def order_updates(case_updates):
    """Order case updates for a single case according to the actions
    they contain.

    This is to ensure create actions are applied before update actions.
    """
    return sorted(case_updates, key=_update_order_index)
def order_updates ( case_updates ) : return sorted ( case_updates , key = _update_order_index )