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]: ['205', '107', 'z']
[EX A]: 0, 1, 2, 5, 7

[EX Q]: ['h', 't', '371', 'e', '153', 'b']
[EX A]: 1, 3, 5, 7

[EX Q]: ['419', '147']
[EX A]:
1, 4, 7, 9