Stochastic equivalence of ordered random variables with applications in reliability theory