I want to sort the following dictionary in Julia in way that the key values are printed in alphabetical order of the key names.
fruits = Dict("Mangoes" => 5, "Pomegranates" => 4, "Apples" => 8);
On executing the above code and entering fruits, I get the output as:
fruits
Dict{String,Int64} with 3 entries:
"Pomegranates" => 4
"Apples" => 8
"Mangoes" => 5
However, I expect the following result:
Apples => 8
Mangoes => 5
Pomegranates => 4