Skip to content
HALOWERK

Textwerk

sort din5007

Variant 1 (DIN 5007-1 section 6.1.1.4.1, dictionaries): ä, ö, ü sort like a, o, u and ß like ss; when everything else is equal the umlaut sorts after the plain vowel (Kohler before Köhler). Variant 2 (section 6.1.1.4.2, name lists and phone books): ä = ae, ö = oe, ü = ue, ß = ss. Both rules match the ICU collations de and de-u-co-phonebk (CLDR 48 / ICU 78), which are used; verified against the published examples (Göbel, Goethe, Goldmann, Göthe, Götz). Returns the order, a simplified primary.

POST https://text.halowerk.com/v1/sort-din5007

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
itemsarrayYesWords or names to sort.
variantstringYes1 = dictionary order (ä = a), 2 = name lists (ä = ae).
orderstringNoAscending or descending order.
numericbooleanNoCompare digit sequences by numeric value (ICU extension, not part of DIN 5007).
Show full input schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "items",
    "variant"
  ],
  "properties": {
    "items": {
      "type": "array",
      "minItems": 1,
      "maxItems": 5000,
      "items": {
        "type": "string",
        "maxLength": 500
      },
      "description": "Words or names to sort."
    },
    "variant": {
      "type": "string",
      "enum": [
        "1",
        "2"
      ],
      "description": "1 = dictionary order (ä = a), 2 = name lists (ä = ae)."
    },
    "order": {
      "type": "string",
      "enum": [
        "asc",
        "desc"
      ],
      "default": "asc",
      "description": "Ascending or descending order."
    },
    "numeric": {
      "type": "boolean",
      "default": false,
      "description": "Compare digit sequences by numeric value (ICU extension, not part of DIN 5007)."
    }
  }
}

Open original schema

Published input example

{
  "items": [
    "Götz",
    "Goldmann",
    "Goethe",
    "Göthe",
    "Göbel"
  ],
  "variant": "2"
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.

More endpoints in this hub

All endpoints in this hub →