Write a function to sort the list based on the last letter of the second element code example
Example: sort by tuple
sorted_by_second = sorted(data, key=lambda tup: tup[1])
sorted_by_second = sorted(data, key=lambda tup: tup[1])