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]: ['1', 'm']
[EX A]: 1

[EX Q]: ['165', '219', 'r', 's', '191', 'k', '39']
[EX A]: 1, 2, 3, 5, 6, 9

[EX Q]: ['f', 'v', 'm', 'r', '91', 'v', '77', 'e', '277', '343', 'e', '465', '275']
[EX A]:
1, 2, 3, 4, 5, 6, 7, 9