for item in provides:
      if item != sorted_provides[index]:
        bad = True
        break
      index += 1