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]: ['239', '439']
[EX A]: 2, 3, 4, 9

[EX Q]: ['d', '25', '323', 'k', 'e']
[EX A]: 2, 3, 5

[EX Q]: ['t', 'l', 'r', '223', '299', '219', '189', '195', 'd', 'b']
[EX A]:
1, 2, 3, 5, 8, 9