Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def itersorted(d):
- for key in sorted(d):
- yield d[key]
- def sorted_dict(d):
- keys = d.keys()
- keys.sort()
- for key in keys:
- yield d[key]
- def sortedDict(dictobj):
- return (value for key, value in sorted(dictobj.iteritems()))
- def compareTwo(a, b):
- if a > b:
- return 1
- if a == b:
- return 0
- if a < b:
- return -1
- List.Sort(compareTwo)
- print a
Add Comment
Please, Sign In to add comment