On median and quartile sets of ordered random variables