ordered random variables theory and applications