Reorder POM when needed