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]: ['q', 'p', 'y', 'p', 'k', 'r', '481', 'v']
[EX A]: 1, 4, 8

[EX Q]: ['j', 'v', 'q', '393', 'z', 'l', 'g', 'q', '193']
[EX A]: 1, 3, 9

[EX Q]: ['3', 'z', 'h', '63', 'f', 'e', '59', 'x', '371', 'n', 'y', '385']
[EX A]:
1, 3, 5, 6, 7, 8, 9