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', '231', 'd', 'i', '33', '431']
[EX A]: 1, 2, 3, 4

[EX Q]: ['395', 'p', '373']
[EX A]: 3, 5, 7, 9

[EX Q]: ['3', '79', 'w', 'g', 'h', '77', 'r', 'g', 'e']
[EX A]:
3, 7, 9