对字典进行排序


#1
julia> d
Dict{Char,Int64} with 3 entries:
  'a' => 10
  'c' => 8
  'b' => 21

现在如何按照字典的键或者值对字典进行排序?


#2

hash 表实现的字典是无序的

Dict([itr])

Dict{K,V}() constructs a hash table with keys of type K and values of type V.
Keys are compared with isequal and hashed with hash.

你可能想要

ref:—— A Dict preserving the insertion order? - Usage - JuliaLang