I'll get to the point,i have this:
    ocurrencias = [('quiero', 1), ('aprender', 1), ('a', 1), ('programar', 1), ('en', 1), ('invierno', 2), ('hace', 1), ('frio', 1), ('este', 1)]
I want to sort it by the second value of the tuples and then by their string value and then print every element to get this:
    output:invierno 2
           a 1
           aprender 1
           en 1
           este 1
           frio 1
           hace 1
           programar 1
           quiero 1
Don't know if i'm making it clear enough,but i'm not really proficient at english so forgive me.
Thanks in advance