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