id_parent ordering fix