I have a list as following:
['Pizza', '1', 'Apple', 2, 'Pizza', '1', 'Orange', '5', 'Pear', '4']
And I want to sort it according to every second element in the list, so the output would be the following:
['Pizza', '1', 'Pizza', '1', 'Apple', 2, 'Pear', '4', 'Orange', '5']
How can I do this?