+ /**
+ * Sort the parent of the given entity, if any auto sort actions are set for it.
+ * Typically ran during create/update/insert events.
+ */
+ public function sortParent(Entity $entity): void
+ {
+ if ($entity instanceof BookChild) {
+ $book = $entity->book;
+ $this->bookSorter->runBookAutoSort($book);
+ }
+ }
+