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: ['y', 'o', '287', 'm', 's', '61']

A: 1, 2, 6, 7, 8
****
Q: ['377', 'z', '421', '137', 't', 'v', 's', 'l']

A: 1, 2, 3, 4, 7
****
Q: ['9', 'o', 'b', '137']

A:
1, 3, 7, 9
****