sort child recursively