CURATOR-116 - Modified sorting of children to be deterministic.

Modified sorting of children to be deterministic.