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

Values of this type denote a (sorted) set of tags.

A set is different to a list, as no duplicate values are allowed.

# Allowed values

Every tag must begin with the number sign character (&ldquo;`#`&rdquo;, U+0023), followed by at least one printable character.
Tags are separated by space characters.

All characters are mapped to their lower case values.

# Query comparison

All comparisons are done case-sensitive, i.e. &ldquo;#hell&rdquo; will not be the prefix of &ldquo;#Hello&rdquo;.

# Sorting

Sorting is done by comparing the [String](00001006033500) values.