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: ['375', '457', '423', 'q', 't']

Answer: 2, 3, 4, 5, 7


Question: ['271', '9', 'v', '93', 'f', 'd']

Answer: 1, 2, 3, 7, 9


Question: ['329', '245', '189', 'e', '227', 'i', 'f', '325', '337', 'q']

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