Sorting currently supports only string and number values. Multiple calls accumulate sort rules in order.
Optionalorder: OrderTypedefaults to "asc"
This operation is transactional: if it throws, nothing changes.
Propagates errors thrown by JSONObjectOps.update.
Uses
_idif provided; otherwise generates one.This operation is transactional: if it throws, nothing changes.