@maschinenlesbar.org/strahlenschutz-cli
    Preparing search index...

    Variable sortByProblemConst

    sortByProblem: Problem<unknown> = ...

    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. The value is checked as a token (tokenProblem): not blank (or only invisible characters), no lone surrogate, no control or format character (a zero-width space pasted along made a property name that looks right but matched nothing); only a TAB may stand where a space does. Whitespace between a property and its direction is fine (normalizeSortBy collapses it); an unknown direction, an empty key (kenn,,value), a third word, or a property that is no XML name (kenn+D, .., a/b) is the problem. The reasons quote the value visibly (quoteValue).