Sorting order of nodes is broken
The sorting order of nodes, especially in a multi-workspace scenario, is partly random. Creating a node and then moving it with moveBefore() and moveAfter() doesn't always lead to the expected result.
[BUGFIX] Sorting order of nodes works again – also across workspaces
This fixes the sorting order handling for nodes.
The change set also introduces optimistic locking for Nodes and several
new functional tests.