Stochastic comparisons of order statistics, with applications in reliability