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: ['i', 'f', 'g', '267', '113', '93', 'r', '401', 'g', 'e']

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


Question: ['361', '47', 'k', '33']

Answer: 1, 3, 4, 6, 7


Question: ['131', '47', '277', 'g', '405', '107', '179', '181', 'q']

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