Our good friends at Optimal IdM provided a "LdifSort.exe" file, but we can no longer find the tool on the Internet.
Ldifsort is used to sort an ldif file so that the parent object is defined before its children. This will allow and import to run successfully.

- r Performs a reverse sort of the LDIF which is useful for delete operations where all child entries will be deleted first then the parents can be deleted.EXAMPLE: LdifSort -r <NAMEOFFILE>Result: a sorted file named <NAMEOFFILE_SORTED>