MCPcopy Index your code
hub / github.com/csev/py4e / sortvalues

Method sortvalues

code3/wikigrade.py:21–23  ·  view source on GitHub ↗
(self, reverse=True)

Source from the content-addressed store, hash-verified

19# A slightly extended dictionary
20class sash(dict):
21 def sortvalues(self, reverse=True):
22 return sorted(list(self.items()),
23 key=lambda x: (x[1], x[0]), reverse=reverse)
24
25
26def tinyTable(url):

Callers 1

wikigrade.pyFile · 0.45

Calls 2

listFunction · 0.85
itemsMethod · 0.45

Tested by

no test coverage detected