Obama ranks 12th best leader in US presidential history