Methods
sort
ΒΆ
sort(h:
Hash
, lte:
Fun
=
(a function)
)
Sort a Hash.
Source:
stdlib.ngs:1876
lte
Less-then-or-equal function to use for comparison of the keys in h
Returns
Hash
Example
{"b": 2, "c": 3, "a": 1}.sort() # {"a": 1, "b": 2, "c": 3}