                                desc="Sort alignment indexes", total=self.alignments.frames_count):
              frame, alignments, count, key = alignment
              if count <= 1:
                  continue
              sorted_alignments = sorted([item for item in alignments], key=lambda x: (x[self.axis]))
              if sorted_alignments == alignments:
                  logger.trace("Alignments already in correct order. Not sorting: '%s'", frame)
                  continue
              logger.trace("Sorting alignments for frame: '%s'", frame)
 
</s> remove             sorted_alignments = sorted([item for item in alignments],
                                       key=lambda x: (x[self.axis]))
 </s> add             sorted_alignments = sorted([item for item in alignments], key=lambda x: (x[self.axis])) </s> remove                               desc="Sort alignment indexes",
                              total=self.alignments.frames_count):
 </s> add                               desc="Sort alignment indexes", total=self.alignments.frames_count): </s> remove             map_faces = self.map_face_names(alignments,
                                            sorted_alignments,
                                            frame)
            self.rename_faces(map_faces)
 </s> add             logger.trace("Sorting alignments for frame: '%s'", frame)
                logger.trace("0 or 1 face in frame. Not sorting: '%s'", frame)
                                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([item for item in alignments], key=lambda x: (x[self.axis]))
              if sorted_alignments == alignments:
                  logger.trace("Alignments already in correct order. Not sorting: '%s'", frame)
                  continue
              logger.trace("Sorting alignments for frame: '%s'", frame)
keep keep add keep keep keep keep keep keep
 Add Face Hashes to Alignments (#550)

* Convert main scripts to use face hashes

* Alignment tool: Use hashes, add logging, add face rename function

* More logging. Update Manual tool to work with hashing 
tools/lib_alignments/jobs.py