A WFS sortBy: comma-separated keys, each a property name with an optional
direction — A/ASC (ascending) or D/DESC (descending), any case. GeoServer
reads any other direction token (DSC, X), and a key with two spaces before the
direction, as ascending with HTTP 200: "end_measure DSC" returned the oldest hours
where the newest were meant. Whitespace is fine here (normalizeSortBy collapses it);
an unknown direction, an empty key (kenn,,value) or a third word is the problem.
A WFS
sortBy: comma-separated keys, each a property name with an optional direction —A/ASC(ascending) orD/DESC(descending), any case. GeoServer reads any other direction token (DSC,X), and a key with two spaces before the direction, as ascending with HTTP 200:"end_measure DSC"returned the oldest hours where the newest were meant. Whitespace is fine here (normalizeSortBy collapses it); an unknown direction, an empty key (kenn,,value) or a third word is the problem.