sortk multimethod

Methods

sortk(h:Hash, lte:Fun=method) Source: stdlib.ngs:2616
Sort Hash by keys

Returns

Hash

Example

{'b': 2, 'c': 11, 'a': 1}.sortk()  # {'a': 1, 'b': 2, 'c': 11}