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]: ['c', '155', '61']
[A]: 1, 5, 6


[Q]: ['381', 'l', 'z', '323', 'x', '247', '11']
[A]: 1, 2, 3, 4, 7, 8


[Q]: ['q', '217', '371', '153', '367', '235', 'g', 'u', 'j', '345', 'i', '495', 'f', '113']
[A]:
1, 2, 3, 4, 5, 6, 7, 9