MCPcopy Index your code
hub / github.com/python/cpython / isort

Function isort

Lib/turtledemo/sorting_animate.py:78–85  ·  view source on GitHub ↗
(shelf)

Source from the content-addressed store, hash-verified

76 b.unglow()
77
78def isort(shelf):
79 length = len(shelf)
80 for i in range(1, length):
81 hole = i
82 while hole > 0 and shelf[i].size < shelf[hole - 1].size:
83 hole = hole - 1
84 shelf.insert(hole, shelf.pop(i))
85 return
86
87def ssort(shelf):
88 length = len(shelf)

Callers 1

start_isortFunction · 0.85

Calls 2

insertMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…