Synchronize ordering for the entire collection. Sweeps through the list and ensures that each object has accurate ordering information set.
(self)
| 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 |
nothing calls this directly
no test coverage detected