Ordering algorithms and confidence intervals in the presence of nuisance parameters