We consider stochastic orders of the following type. Let 𝔉 be a class of functions and let P and Q be probability measures. Then define P ≦𝔉Q, if ∫ f dP ≦ ∫ f dQ for all f in 𝔉. Marshall posed the problem of characterizing the maximal cone of functions generating such an ordering. We solve this problem by using methods from functional analysis. Another purpose of this paper is to derive properties of such integral stochastic orders from conditions satisfied by the generating class of functions. The results are illustrated by several examples. Moreover, we show that the likelihood ratio order is closed with respect to weak convergence, though it is not generated by integrals.