Skip to content

KeySort

Status: Stable

documented, exercised by the test suite and/or worked examples, with no known limitations recorded.

Description

KeySort[assoc]

Sorts an association into canonical key order.

Examples (1)

Every input below was run against the current Mathilda build and its output recorded.

Basic examples (1)

In[1]:= KeySort[<|"c" -> 3, "a" -> 1, "b" -> 2|>]
Out[1]= <|"a" -> 1, "b" -> 2, "c" -> 3|>

Implementation notes

Attributes: Protected.

References