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]: ['255', 'u', 's', 'g', '445']
[EX A]: 2, 4, 5

[EX Q]: ['z', 'g', '311', 'd', 's', 'w']
[EX A]: 1, 3

[EX Q]: ['o', 'w', 'f', '41', 's', '199', '467', 'q']
[EX A]:
1, 4, 6, 7, 9