Reorder comparison script to take into account some dependencies. Fixes issue #27