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', '475', 'x', '53', '461', 'c']

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


Question: ['k', '233', 'h', 'd', 's', '83', '149', 'p', 'm']

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


Question: ['j', 'y', '159', '323', 'p', 'n']

Answer:
1, 2, 3, 5, 9