for item in requires:
      if item != sorted_requires[index]:
        bad = True
        break
      index += 1