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]: ['y', 'l', 'g', 'w', '13', 'd', '123', '279', '293', 'n', '341', 'n', '359', '35', 'd']
[EX A]: 1, 2, 3, 4, 5, 7, 9

[EX Q]: ['175', 'c', 'c']
[EX A]: 1, 5, 7

[EX Q]: ['r', '143', 'l', '151', 'j', 'o', 'f', 'q']
[EX A]:
1, 3, 4, 5