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: ['p', '45', 'z', '85', 'k', 'e', '191', '265', '261', 'w', 'l', '263', 'w']

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


Question: ['445', '449']

Answer: 4, 5, 9


Question: ['w', 'v', 'a', 'b', 's', '155', 'g', 'j', '183']

Answer:
1, 3, 5, 8