Add order and delete to documents