Improve templight trace's children ordering