Max Noel  committed a7f082d

* in to_json_dict, sets are now converted to sorted lists. Makes for more consistency and predictability.

  • Participants
  • Parent commits ead97b2
  • Branches default

Comments (0)

Files changed (1)

File dynamodb_mapper/

         for name in self.__schema__:
             value = getattr(self, name)
             if isinstance(value, (set, frozenset)):
-                out[name] = list(value)
+                out[name] = sorted(value)
             elif isinstance(value, datetime.datetime):
                 # Using strftime instead of str or isoformat to get the right
                 # separator ('T') and time offset notation (with ':')