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', '109']

Answer: 0, 1, 9


Question: ['m', 'c', '139', '433', '29', 'z', '45', 't', 'a', 'n', '297', '45', '281']

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


Question: ['329', '311', '133', 's', '377', 'f', '153', 'i', 'b', 'd', '135', 'l']

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