mylist = [('Action',1) , ('Horror',2) , ('Adventure',0) , ('History',2) , ('Romance',1) ,('Comedy',1)]
i have a list of tuples like that:
Action: 1
Horror: 2
Adventure: 0
History: 2
Romance: 1
Comedy: 1
i want to sort this by two elements (name(Alphabetically) & value)
my result should be :
History: 2
Horror: 2
Action: 1
Comedy: 1
Romance: 1
Adventure: 0