Fixed #2445 Fixed bug for sortAllChildren ,that tempChild is a changing var
Merge pull request #1057 from xingsenma/sortAllChildren

 Fixed #2445 Fixed bug for sortAllChildren ,that tempChild is a changing Var