If you pass a sorted query to a WFSFeatureSource it is ignored if the request version is 1.0.0 or 2.0.0 but not 1.1.0. The response at GeoServer is
Request: getFeature
handle = GeoTools 17-SNAPSHOT(75b7dedf87aec993a92e924ccf1d9ac4053a9434) WFS 2.0.0 DataStore @astun-desktop#1
service = WFS
version = 2.0.0
baseUrl = http://localhost:8080/geoserver/
count = 10
outputFormat = application/gml+xml; version=3.2
resolve = none
resolveDepth = *
resolveTimeout = 300
resultType = results
abstractQueryExpressionGroup[0] = wfs:abstractQueryExpression=net.opengis.wfs20.impl.QueryTypeImpl@3349b1f2 (handle: null) (abstractProjectionClause: null, abstractSelectionClause: null, abstractSortingClause: null, aliases: null, typeNames: [{http://www.openplans.org/topp}states]) (featureVersion: null, srsName: urn:ogc:def:crs:EPSG::4326, filter: null, propertyNames: null, sortBy: null)
abstractQueryExpression[0]:
typeNames[0] = {http://www.openplans.org/topp}states
srsName = urn:ogc:def:crs:EPSG::4326
|