input: Write a python function to sort a list of lists based on the second element using a lambda function.
  assert sortList([[2, 4], [3, 2], [4, 1], [1, 3]]) == [[4, 1], [3, 2], [1, 3], [2, 4]]
  assert sortList([[5, 10], [2, 3], [7, 1], [8, 5]]) == [[7, 1], [2, 3], [8, 5], [5, 10]]
  assert sortList([[1, 9], [6, 8], [4, 7], [3, 2]]) == [[3, 2], [4, 7], [6, 8], [1, 9]]
output: def sortList(lists):
      return sorted(lists, key=lambda x: x[1])