So I create this list of tuples where each tuple consists of an int and an array.
a = ((1, array([1,2,3])), (4, array([1,3,3])), (2, array([1,3,2])))
I want to sort the list so that the list is ordered from increasing int order.
ie.
a = ((1, array([1,2,3])), (2, array([1,3,2])), (4, array([1,3,3])))
I tried using
a.sort()
which from the article I was reading should have sorted it how I want to but it returned the error
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()