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]: ['b', '329', 'm', 'q', 'k', 'z', 'k', '199', 'v', 'l']
[EX A]: 1, 2, 3, 9

[EX Q]: ['t', 'r', 'z']
[EX A]: -1

[EX Q]: ['283', '379', '307', 'b', 'p', '467']
[EX A]:
0, 2, 3, 4, 6, 7, 8, 9