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

    Function sortProblem

    • Why value cannot be sent as a sort expression, or undefined when it can: the tokenProblem rules, then Solr's syntax, a comma-separated list of a field (or function) and a direction, metadata_modified desc, name asc. A criterion without asc/desc is refused here rather than as CKAN's HTTP 400 (Invalid "sort" parameter). An unknown field is not caught: CKAN sorts by its default then, as documented.

      Parameters

      • value: string

      Returns string | undefined