Sort based on sublist

Good morning,

I have already done several searches on the forum and I have not found a way to sort a list based on the value of the sub-list in the image below.

Hi @Tiago

Try this:

OUT = sorted(IN[0], key = lambda x: (x[0]))

we are almost there

it didn’t work very well

Why are you connecting Python? Shouldn’t be like this:

AS THE PICTURE ABOVE IS IN THIS FORM HERE