I figured out the problem. If you use WFS version 1.0.0 sortBy does not work.
Using version 1.1.0 works.
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/GeoTools-WFS-Query-sortBy-not-working-for-GeoServer-WFS-tp5188240p5188544.html
Sent from the GeoServer - User mailing list archive at Nabble.com.