          """ Get landmarks for current image """
          image = cv2.imread(filename)
          queue_manager.get_queue("in").put(self.alignment_dict(image))
          face = queue_manager.get_queue("out").get()
          return face["detected_faces"][0].landmarksXY
  
      def sort_process(self):
          """
          This method dynamically assigns the functions that will be used to run
          the core process of sorting, optionally grouping, renaming/moving into
 
</s> remove         queue_manager.get_queue("in").put(self.alignment_dict(image))
 </s> add         queue_manager.get_queue("in").put(Sort.alignment_dict(image)) </s> remove     def get_landmarks(self, filename):
        """ Get landmarks for current image """
 </s> add     @staticmethod
    def get_landmarks(filename):
        """ Extract the face from a frame (If not alignments file found) """ </s> remove     def launch_aligner():
 </s> add     def launch_aligner(loglevel): </s> remove         self.launch_aligner()
 </s> add         self.launch_aligner(self.args.loglevel) </s> remove             aligner = PluginLoader.get_aligner(plugin)()
 </s> add             aligner = PluginLoader.get_aligner(plugin)(loglevel=loglevel)
        landmarks = face["landmarks"][0]
        return landmarks
          """ Get landmarks for current image """
          image = cv2.imread(filename)
          queue_manager.get_queue("in").put(self.alignment_dict(image))
          face = queue_manager.get_queue("out").get()
        landmarks = face["landmarks"][0]
        return landmarks
  
      def sort_process(self):
          """
          This method dynamically assigns the functions that will be used to run
          the core process of sorting, optionally grouping, renaming/moving into
keep keep keep keep replace keep keep keep keep keep
 Staging sort fix (#584)

* fixed several bugs that prevented sort algorithms from beeing working in staging branch.
face-cnn, face-cnn-dissim and face-yaw now working again
blur, face, hist, hist-dissim already worked before
face-dissim still has an error

* applied requested changes from torzdf 
tools/sort.py