Skip to content

Exported dictionaries have their keys sorted alphabetically #90142

@JHDev2006

Description

@JHDev2006

Tested versions

  • Tested with Godot 4.1.2 and Godot 4.3 dev 5

System information

Godot v4.3.dev5.mono - Windows 10.0.22631 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3070 Ti (NVIDIA; 31.0.15.4592) - AMD Ryzen 7 5800X 8-Core Processor (16 Threads)

Issue description

When an exported dictionary is created, they keys which are set in the editor, are sorted at runtime, which is incredibly frustrating for my use case.

Steps to reproduce

  • Create an exported dictionary (@export var dict := {})
  • Add some values into the dictionary through the editor. - ({"b": 0, "c": 1, "a": 2})
  • Print the dictionary, it will output: "{"a": 2, "b": 0, "c": 1}"

Minimal reproduction project (MRP)

N/A

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions