I have a similar question to this question: Determine if 2 lists have the same elements, regardless of order?
What is the best/quickest way to determine whether an unsor
If you sort given list and then append it to myListOfLists you can use this:
myListOfLists
if sorted(list1) in myListOfLists: