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: ['p', 'r', 'e', 'b', '149', '361', 'i']

A: 1, 3, 4, 6, 9
****
Q: ['w', 'p', 'r', 'v', 'd']

A: -1
****
Q: ['f', '123', 'o', '307', 'l', '421', '353', '233', 'x', 'x', '251', 't']

A:
0, 1, 2, 3, 4, 5, 7
****
