Ordering extremes of interdependent random variables