              faces.setdefault(src["source_filename"], []).append(src["face_index"])
          logger.trace(faces)  # type: ignore
          return faces
  
      def sorted_items(self) -> Union[List[Tuple[str, "PNGHeaderDict"]],
                                      List[Tuple[str, "PNGHeaderSourceDict"]]]:
          """ Return the items sorted by the saved file name.
  
          Returns
          --------
          list
 
</s> remove         items = cast(Union[List[Tuple[str, "PNGHeaderDict"]],
                           List[Tuple[str, "PNGHeaderSourceDict"]]],
                     sorted(self.process_folder(), key=itemgetter(0)))
 </s> add         items = sorted(self.process_folder(), key=itemgetter(0)) </s> remove         for face in cast(Union[List[Tuple[str, "PNGHeaderDict"]],
                               List[Tuple[str, "PNGHeaderSourceDict"]]],
                         self.file_list_sorted):
            src: "PNGHeaderSourceDict" = cast(
                "PNGHeaderDict",
                face[1])["source"] if self._with_alignments else cast("PNGHeaderSourceDict",
                                                                      face[1])
 </s> add         for face in cast(List[Tuple[str, "PNGHeaderDict"]], self.file_list_sorted):
            src = face[1]["source"] </s> remove     def _get_items(self) -> Union[List[Dict[str, str]], List[Dict[str, "PNGHeaderSourceDict"]]]:
 </s> add     def _get_items(self) -> Union[List[Dict[str, str]], List[Tuple[str, "PNGHeaderDict"]]]: </s> remove                                     List[Tuple[str, "PNGHeaderSourceDict"]],
 </s> add  </s> remove         return cast(Union[List[Dict[str, str]], List[Dict[str, "PNGHeaderSourceDict"]]],
 </s> add         return cast(Union[List[Dict[str, str]], List[Tuple[str, "PNGHeaderDict"]]],
    def sorted_items(self) -> List[Tuple[str, "PNGHeaderDict"]]:
              faces.setdefault(src["source_filename"], []).append(src["face_index"])
          logger.trace(faces)  # type: ignore
          return faces
  
    def sorted_items(self) -> List[Tuple[str, "PNGHeaderDict"]]:
    def sorted_items(self) -> List[Tuple[str, "PNGHeaderDict"]]:
          """ Return the items sorted by the saved file name.
  
          Returns
          --------
          list
keep keep keep keep replace replace keep keep keep keep keep
 Alignments Tool updates
  - Copy info back to alignments file from faces 
tools/alignments/media.py