MCPcopy
hub / github.com/ternjs/tern_for_vim / mycmp

Function mycmp

script/tern.py:353–356  ·  view source on GitHub ↗
(a,b)

Source from the content-addressed store, hash-verified

351 if data is None: return
352
353 def mycmp(a,b):
354 return (cmp(a["file"], b["file"]) or
355 cmp(a["start"]["line"], b["start"]["line"]) or
356 cmp(a["start"]["ch"], b["start"]["ch"]))
357 data["changes"].sort(key=tern_cmp_to_key(mycmp))
358 changes_byfile = groupby(data["changes"]
359 ,key=lambda c: tern_projectFilePath(c["file"]))

Callers 6

__lt__Method · 0.85
__gt__Method · 0.85
__eq__Method · 0.85
__le__Method · 0.85
__ge__Method · 0.85
__ne__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected