fixes #932: bookimport works with parent-child relations in unsorted xml files