In this task, you are given an input list A. You need to extract and sort the unique digits used in the list in ascending order. Return -1 if there is no digit in the list.
--------
Question: ['u', 'z', 'p', '99', 'b']

Answer: 9


Question: ['f', '135', 's', '269', 'x', '45', 'p', '141', 'e']

Answer: 1, 2, 3, 4, 5, 6, 9


Question: ['11', '103', 'c', '47', '467', 'w', 'e', '395', '301', 's', 'n', 'z', 'x', 'x', '135']

Answer:
0, 1, 3, 4, 5, 6, 7, 9