Increased chance of building a proper term hierarchy

Increased chance of building a proper hierarchy based on the assumption that the child has a greater term_id than the parent.