title: Identifier Key Type
role: manual
tags: #manual #meta #reference #zettel #zettelstore
syntax: zmk
back: 00001006030000 00001006032500 00001006034500 00001012931200
backward: 00001006030000 00001006032000 00001006032500 00001006034500 00001012931200
box-number: 1
copyright: (c) 2020-present by Detlef Stern <ds@zettelstore.de>
created: 20210212135017
forward: 00001006032000 00001006033500 00001006050000 00001007705000 00001007706000
lang: en
license: EUPL-1.2-or-later
modified: 20230612183459
published: 20230612183459
visibility: public

Values of this type denote a [[zettel identifier|00001006050000]].
=== Allowed values
Must be a sequence of 14 digits (""0""–""9"").
=== Query comparison
[[Search values|00001007706000]] with more than 14 characters are truncated to contain exactly 14 characters.

When the [[search operators|00001007705000]] ""less"", ""not less"", ""greater"", and ""not greater"" are given, the length of the search value is checked.
If it contains less than 14 digits, zero digits (""0"") are appended, until it contains exactly 14 digits.

All other comparisons assume that up to 14 characters are given.

Comparison is done through the string representation.

In case of the search operators ""less"", ""not less"", ""greater"", and ""not greater"", this is the same as a numerical comparison.

For example, ""000010"" matches ""[[00001006032000|00001006032000]]"".
=== Sorting
Sorting is done by comparing the [[String|00001006033500]] values.

If both values are identifiers, this works well because both have the same length.