A major reference on this topic is Tim Robertson, F. T. Wright, R. L. Dykstra (1988),
Order Restricted Statistical Inference, published by Wiley. It is expensive and technical, but it is still probably the best place to look. An earlier reference is Richard E. Barlow (1972), Statistical Inference Under Order Restrictions: The Theory and Application of Isotonic Regression. Perhaps you can find something easier to digest online, by searching for "order-restricted inference" or "isotonic regression."
For the chi-square application you mention, the basic idea, as I understand it, is to compute the chi-square statistic but with some twists: First, the "expected" counts should be obtained based on the stochastic-ordering requirement -- this is done using isotonic-regression techniques, which involves pooling adjacent categories when the observed ordering is violated. Second, the significance is assessed using the "chi-bar-square" distribution, which is the distribution of a mixture of chi-squares with different d.f. This is necessary because under the null hypothesis that there is no difference between the distributions, there are various possibilities for which categories need to be pooled in performing the isotonic regression.
This is not a complete answer to your question, but it does point to the basic ideas. Note also that this definitely does say that the usual chi-square test is not suitable for the stochastically-ordered hypotheses you wish to test. Perhaps you can consult someone having the expertise to be able to navigate the techniques needed to get this done with your data. Good luck!