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: ['c', '155', '61']

Answer: 1, 5, 6


Question: ['421', '99', '115', 'x']

Answer: 1, 2, 4, 5, 9


Question: ['q', '431', 'b', 's', 'f', '465', '43', 'n', 'd', 'f', '185', 'v']

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