          for alignment in tqdm(self._alignments.yield_faces(),
                                desc="Sort alignment indexes", total=self._alignments.frames_count):
              frame, alignments, count, key = alignment
              if count <= 1:
                  logger.trace("0 or 1 face in frame. Not sorting: '%s'", frame)
                  continue
              sorted_alignments = sorted(alignments, key=lambda x: (x["x"]))
              if sorted_alignments == alignments:
                  logger.trace("Alignments already in correct order. Not sorting: '%s'", frame)
                  continue
 
</s> remove                 logger.trace("Alignments already in correct order. Not sorting: '%s'", frame)
 </s> add                 logger.trace("Alignments already in correct order. Not "  # type:ignore
                             "sorting: '%s'", frame) </s> remove             logger.trace("Sorting alignments for frame: '%s'", frame)
 </s> add             logger.trace("Sorting alignments for frame: '%s'", frame)  # type:ignore </s> remove     def reindex_faces(self) -> None:
 </s> add     def reindex_faces(self) -> int: </s> remove                 logger.verbose("skipping invalid file: '%s'", filename)
 </s> add                 logger.verbose("skipping invalid file: '%s'", filename)  # type:ignore </s> remove         logger.trace("Annotating frame: '%s'", frame_name)
 </s> add         logger.trace("Annotating frame: '%s'", frame_name)  # type:ignore
                logger.trace("0 or 1 face in frame. Not sorting: '%s'", frame)  # type:ignore
          for alignment in tqdm(self._alignments.yield_faces(),
                                desc="Sort alignment indexes", total=self._alignments.frames_count):
              frame, alignments, count, key = alignment
              if count <= 1:
                logger.trace("0 or 1 face in frame. Not sorting: '%s'", frame)  # type:ignore
                  continue
              sorted_alignments = sorted(alignments, key=lambda x: (x["x"]))
              if sorted_alignments == alignments:
                  logger.trace("Alignments already in correct order. Not sorting: '%s'", frame)
                  continue
keep keep keep keep replace keep keep keep keep keep
 Bugfix: Alignments tool - don't error on from-faces job 
tools/alignments/jobs.py