I'm using WFS with multiple layers, but the results are sorted by layer, not by the full result set.
For instance:
Layer A
- a
- b
- c
- d
Layer B
- a
- b
- c
- d
I want the results be a single list sorted by name (all layers have the attribute "name"), no matter from which layer the result is, I just need a global order.
Layers result
- a
- b
- c
- d
- e
- etc...
Here is my example query:
http://localhost:8080/geoserver/wfs?service=WFS&version=2.0.0&outputFormat=application/json&srsName=EPSG:4326&request=GetFeature&count=10&startIndex=0&typeNames=(myworkspace:layerA)(myworkspace:layerB)&propertyName=myworkspace:layerA:name,myworkspace:layerA:geom,myworkspace:layerB:name,myworkspace:layerB:geom,&cql_filter=(name ILIKE '%example%25');(name ILIKE '%example%25')&sortBy=name
What would be a good sortBy syntax?
e
is mentioned in the before results, but is found in the after. And why isn't ita a b b c c d d
?