def sortdict(dict):
items = sorted(dict.items())<EOL>reprpairs = ["<STR_LIT>" % pair for pair in items]<EOL>withcommas = "<STR_LIT:U+002CU+0020>".join(reprpairs)<EOL>return "<STR_LIT>" % withcommas<EOL>
Like repr(dict), but in sorted order.