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]: ['345', 'h', '9']
[EX A]: 3, 4, 5, 9

[EX Q]: ['157', 'k', 'o', 'a', '279', 'g']
[EX A]: 1, 2, 5, 7, 9

[EX Q]: ['a', '309', 'd']
[EX A]:
0, 3, 9