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: ['h', 't', 'h', 'i', 'c', '441', '117', '463', 'r']

Answer: 1, 3, 4, 6, 7


Question: ['h', '475', 'x', '53', '461', 'c']

Answer: 1, 3, 4, 5, 6, 7


Question: ['n', 's', '201', '461', '461']

Answer:
0, 1, 2, 4, 6