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: ['221', '191', 'w', 'l', 'h', 'a']

Answer: 1, 2, 9


Question: ['t', 'y', '331']

Answer: 1, 3


Question: ['175', 'q', '119', 's', '421', '73', 'e', '153', 'a', '217', '355', 'v']

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