MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / reorder

Method reorder

lib/sqlalchemy/ext/orderinglist.py:331–339  ·  view source on GitHub ↗

Synchronize ordering for the entire collection. Sweeps through the list and ensures that each object has accurate ordering information set.

(self)

Source from the content-addressed store, hash-verified

329 setattr(entity, self.ordering_attr, value)
330
331 def reorder(self) -> None:
332 """Synchronize ordering for the entire collection.
333
334 Sweeps through the list and ensures that each object has accurate
335 ordering information set.
336
337 """
338 for index, entity in enumerate(self):
339 self._order_entity(index, entity, True)
340
341 # As of 0.5, _reorder is no longer semi-private
342 _reorder = reorder

Callers

nothing calls this directly

Calls 1

_order_entityMethod · 0.95

Tested by

no test coverage detected