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

All examples below are verified against the current Mathilda build.

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

Implementation notes

Attributes: Protected.

Implementation status

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

References