An Ordering Theorem for Conditionally Independent and Identically Distributed Random Variables