see Evanās feedback from the MIT App Inventor team here
I donāt that this would technically be always guaranteed. JSON objects are considered unordered, so the key-value mappings can appear in any order and the objects are equivalent. Our implementation of dictionaries always keeps the key order as set by the user. My guess is that when we read the JSON serialization back from TinyDB that the parser orders the keys (even though itās not needed), and that because the JSON functionality is Android dependent it might even change behavior from version to version of Android.
(copied freom a Power user thread)