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

Modified sorting of children to be deterministic.
This can be private, right?