def __iter__(self):
        'Iterate over values in sorted order'
        node = self.head.next[0]
        while node is not NIL:
            yield node.value
            node = node.next[0]
Iterate over values in sorted order
recipes/Python/576930_Efficient_Running_Mediusing_Indexable/recipe-576930.py