Verifying the order of edits on the server and client.

Motivation:
Currently the order of edits is not preserved and the leads to
inconsistent behaviour.