              for frame in tqdm(sorted(frames), desc=f"Sorting {fname}", leave=False):
                  this_file[frame] = []
                  for real_idx, (f_id, alignment, f_path, f_src) in enumerate(sorted(frames[frame])):
                      if real_idx != f_id:
                          self._update_png_header(f_path, real_idx, alignment, f_src)
                      this_file[frame].append(alignment)
              aln_sorted[fname] = this_file
          return aln_sorted
  
      @classmethod
      def _update_png_header(cls,
 
</s> remove                 for real_idx, (f_id, alignment, f_path, f_src) in enumerate(sorted(frames[frame])):
 </s> add                 for real_idx, (f_id, almt, f_path, f_src) in enumerate(sorted(frames[frame],
                                                                              key=itemgetter(0))): </s> remove                                                                AlignmentFileDict,
                                                               str,
                                                               dict]]]]
                         ) -> Dict[str, Dict[str, List[AlignmentFileDict]]] :
 </s> add                                                               AlignmentFileDict,
                                                              str,
                                                              dict]]]]
                         ) -> Dict[str, Dict[str, List[AlignmentFileDict]]]: </s> remove             default=15,
 </s> add             default=22.5, </s> remove             min_max=(0.0, 25.0),
 </s> add             min_max=(0.0, 45.0),
                        self._update_png_header(f_path, real_idx, almt, f_src)
                    this_file[frame].append(almt)
              for frame in tqdm(sorted(frames), desc=f"Sorting {fname}", leave=False):
                  this_file[frame] = []
                  for real_idx, (f_id, alignment, f_path, f_src) in enumerate(sorted(frames[frame])):
                      if real_idx != f_id:
                        self._update_png_header(f_path, real_idx, almt, f_src)
                    this_file[frame].append(almt)
                        self._update_png_header(f_path, real_idx, almt, f_src)
                    this_file[frame].append(almt)
              aln_sorted[fname] = this_file
          return aln_sorted
  
      @classmethod
      def _update_png_header(cls,
keep keep keep keep replace replace keep keep keep keep keep
 Bugfix: Alignments tool sorting error in 'from-faces' 
tools/alignments/jobs.py