Refs #10330. Only use openmp optimized sort when openmp is present