Added sorting of dictionaries and colors.