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: ['q', 'g', 'z', '309']

Answer: 0, 3, 9


Question: ['t', '419', 'f']

Answer: 1, 4, 9


Question: ['b', 'b', '483', '475', '475', 'x', '413', 'r', 'p']

Answer:
1, 3, 4, 5, 7, 8