The natural order is the time clause C, the main clause B, the that-clause E, the behaviour A, and the closing time phrase D, giving 'When the father came home, he found that the children had behaved quite well while he was away.' The order is C, B, E, A, D.