The order of keys in a dictionary returned from a server function is changing mysteriously

It’s most likely an issue with the serialization from server to client. I did an experiment with an OrderedDict, and while it returned it didn’t maintain the order either.

Your best bet is to include ordering information in the dictionary and sort on the client side.

1 Like