You should see this thread.
Looks like the problem is that the script tries to sort all of the posts at once and runs out of memory. Most importers pull in only 1000 posts at a time, which keeps that from happening. It looks like there’s something strange about how topics are ordered.