implement reordering of children (if supported by the backend)

We implemented sorting of children in create.js. This is an addition to order the children when saving the parent.