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.

[Q]: ['487', 'x']
[A]: 4, 7, 8


[Q]: ['233', '339', '319']
[A]: 1, 2, 3, 9


[Q]: ['145', 'v', '385', '293', '279', 'p']
[A]:
1, 2, 3, 4, 5, 7, 8, 9