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]: ['i', '127', 'j', 'z', '489', '359', 'i', 'j', 'y', 'p', 'm', 'z']
[EX A]: 1, 2, 3, 4, 5, 7, 8, 9

[EX Q]: ['r', 'u', '83', 'x', '155', '89', 'c', '391', '41', 'o', 'i', '161']
[EX A]: 1, 3, 4, 5, 6, 8, 9

[EX Q]: ['c', 'z', 'v', 'q', '365', '25', '451', '499', '485', '267', 'u', 'x', '433', '457']
[EX A]:
1, 2, 3, 4, 5, 6, 7, 8, 9