          scores = np.zeros(len(filename_list), dtype='float32')
          img_list = list(list(items) for items in zip(filename_list, landmarks, scores))
  
          img_list_len = len(img_list)
          for i in tqdm(range(0, img_list_len - 1), desc="Comparing...", file=sys.stdout):
              score_total = 0
              for j in range(i + 1, img_list_len):
                  if i == j:
                      continue
 
</s> remove         for i in tqdm(range(0, img_list_len - 1),
                      desc="Sorting",
                      file=sys.stdout):
 </s> add         for i in tqdm(range(0, img_list_len - 1), desc="Comparing...", file=sys.stdout): </s> remove             for j in range(i + 1, len(img_list)):
 </s> add             for j in range(i + 1, img_list_len): </s> remove         """ Sort by CNN dissimilarity """
        self.launch_aligner()
        input_dir = self.args.input_dir

        logger.info("Sorting by face-cnn dissimilarity...")

        img_list = []
        for img in tqdm(self.find_images(input_dir),
                        desc="Loading",
                        file=sys.stdout):
            landmarks = self.get_landmarks(img)
            img_list.append([img, np.array(landmarks)
                             if landmarks
                             else np.zeros((68, 2)), 0])
 </s> add         """ Sort by landmark dissimilarity """
        logger.info("Sorting by landmark dissimilarity...")
        filename_list, image_list, landmarks = self._get_landmarks()
        scores = np.zeros(len(filename_list), dtype='float32')
        img_list = list(list(items) for items in zip(filename_list, landmarks, scores)) </s> remove         for i in tqdm(range(0, img_list_len), desc="Sorting", file=sys.stdout):
 </s> add         for i in tqdm(range(0, img_list_len), desc="Comparing", file=sys.stdout):
        logger.info("Comparing landmarks...")
          scores = np.zeros(len(filename_list), dtype='float32')
          img_list = list(list(items) for items in zip(filename_list, landmarks, scores))
  
        logger.info("Comparing landmarks...")
          img_list_len = len(img_list)
          for i in tqdm(range(0, img_list_len - 1), desc="Comparing...", file=sys.stdout):
              score_total = 0
              for j in range(i + 1, img_list_len):
                  if i == j:
                      continue
keep keep add keep keep keep keep keep keep
 ENHANCEMENT: Sort image multi-threading and code clarity (#912)

* Use multi-threaded loading

* fast reload

* remove landmark stub

* saves

* correct face sort

* pep8 
tools/sort.py