Break Dictionary arrange key

my dictionary keys is not same after set
Set dictionary
pbb

after set dictionary
pbb1

Code

Result = Dict("Ada Boost" => Dict(),
              "Decision Tree" => Dict(),
              "Linear Model" => Dict(),
              "Random Forest" => Dict(),
              "Support Vector Machine" => Dict(),
              "XG Boost" => Dict())

Show dictionary keys
keys(Result)

Dicts and Sets from the Julia standard library are unordered, i.e. you can’t rely that you get any particular order of entries upon iteration over those collections.
There are OrderedCollections and DataStructures packages (and maybe others) that add ordered and sorted collections.

2 Likes

Thank you so much it’s work.