Message245953
On further investigation, simplejson has implemented this functionality under a different name since 2.5.0 (2012-03-29).
"""
If item_sort_key is a callable (not the default), then the output of dictionaries will be sorted with it. The callable will be used like this: sorted(dct.items(), key=item_sort_key). This option takes precedence over sort_keys.
Changed in version 2.5.0: item_sort_key is new in 2.5.0.
""" |
|
Date |
User |
Action |
Args |
2015-06-29 18:13:42 | bob.ippolito | set | recipients:
+ bob.ippolito, rhettinger, catherinedevlin |
2015-06-29 18:13:42 | bob.ippolito | set | messageid: <1435601622.15.0.2411631772.issue24518@psf.upfronthosting.co.za> |
2015-06-29 18:13:42 | bob.ippolito | link | issue24518 messages |
2015-06-29 18:13:42 | bob.ippolito | create | |
|