Dispersive functions and stochastic orders