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]: ['p', 'p', '91']
[EX A]: 1, 9

[EX Q]: ['171', 'h', '53', 'o', 'q']
[EX A]: 1, 3, 5, 7

[EX Q]: ['297', '173', '393', 'l', 'm', '447', 'd', 's', '287', 'x', 'm', '443', '215', 'f']
[EX A]:
1, 2, 3, 4, 5, 7, 8, 9