  
      def faces_count_matches(self, item):
          """ Check the selected face exits """
          image_name, number_alignments = item[0], item[2]
          number_faces = len(self.faces.items.get(image_name, []))
          return bool(number_alignments == 0
                      or number_alignments == number_faces)
  
      def remove_alignment(self, item):
          """ Remove the alignment from the alignments file """
 
</s> remove         self.file_list_sorted = sorted([item
                                        for item in self.process_folder()])
 </s> add         self.file_list_sorted = self.sorted_items()
        number_faces = len(self.faces.items.get(image_name, None))
  
      def faces_count_matches(self, item):
          """ Check the selected face exits """
          image_name, number_alignments = item[0], item[2]
        number_faces = len(self.faces.items.get(image_name, None))
          return bool(number_alignments == 0
                      or number_alignments == number_faces)
  
      def remove_alignment(self, item):
          """ Remove the alignment from the alignments file """
keep keep keep keep replace keep keep keep keep keep
 Bugfix for renaming of faces (#485)

* Bugfix renaming of faces 
tools/alignments.py