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]: ['183', '235', 'a', '261', 'z', 'n', 's', 'q', 'm', '311', '399', '457']
[EX A]: 1, 2, 3, 4, 5, 6, 7, 8, 9

[EX Q]: ['433', '133', '255', 'h', '59', 'm', '315', '149', 't', 'y', 'n', '59', '493', '295']
[EX A]: 1, 2, 3, 4, 5, 9

[EX Q]: ['z', 'm', 'd', '151', 'l', 'v', '233', 'v', 'n', '369', 'd', '471', 'i', 'x', '155']
[EX A]:
1, 2, 3, 4, 5, 6, 7, 9