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.

[EX Q]: ['h', '281', 'x', '471']
[EX A]: 1, 2, 4, 7, 8

[EX Q]: ['291', 'p', '261', 'z', '21', 'w', 't', '417']
[EX A]: 1, 2, 4, 6, 7, 9

[EX Q]: ['x', '447', 'c', 'c', 'b', 'e', 't', '491', '51', '407', 'i', 'j', '195', '179', 'n']
[EX A]:
0, 1, 4, 5, 7, 9