Skip to content
HALOWERK

Text Tools

locale collation numeric order shift

Natural sorting measures order changes when numeric label segments are compared by numeric value. Use it when an agent needs version and numbered-item ordering.

POST https://text.halowerk.com/v1/locale-collation-numeric-order-shift

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
textstringYes
localestringNo
Show full input schema
{
  "type": "object",
  "properties": {
    "text": {
      "type": "string",
      "maxLength": 12000,
      "minLength": 1
    },
    "locale": {
      "type": "string",
      "maxLength": 80,
      "minLength": 1
    }
  },
  "required": [
    "text"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "locale": "de",
  "text": "Zug\nApfel\nÄpfel\napfel\nAal\nTeil 10\nTeil 2"
}

Result & documentation

Show published result schema
{
  "type": "object",
  "required": [
    "measured_at",
    "source",
    "data",
    "limitations"
  ],
  "properties": {
    "measured_at": {
      "type": "string"
    },
    "source": {
      "type": "object",
      "required": [
        "reference",
        "retrieved_at"
      ],
      "properties": {
        "reference": {
          "type": "string"
        },
        "retrieved_at": {
          "type": "string"
        }
      }
    },
    "data": {
      "type": "object",
      "properties": {
        "locale": {
          "type": "string"
        },
        "reversed_pairs": {
          "type": "integer"
        },
        "changed_positions": {
          "type": "integer"
        }
      },
      "required": [
        "locale",
        "reversed_pairs",
        "changed_positions"
      ]
    },
    "limitations": {
      "type": "string"
    }
  }
}

Machine-readable documentation of this hub

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

More endpoints in this hub

All endpoints in this hub →