KeySortBy
KeySortBy[assoc,f]
sorts the elements of an association in the order defined by applying f to each of their keys.
Examples
Basic Examples (5)
Sort the association entries by keys in reverse order:
Sort the association by its keys modulo 3:
Sort the entries by the length of their keys:
Use the operator form of KeySortBy:
Wolfram Research (2014), KeySortBy, Wolfram Language function, https://reference.wolfram.com/language/ref/KeySortBy.html.
Text
Wolfram Research (2014), KeySortBy, Wolfram Language function, https://reference.wolfram.com/language/ref/KeySortBy.html.
CMS
Wolfram Language. 2014. "KeySortBy." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/KeySortBy.html.
APA
Wolfram Language. (2014). KeySortBy. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/KeySortBy.html