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: ['461', 'u', 't']

A: 1, 4, 6
****
Q: ['227', '161', '389', 'g', 'g', 'i', 'm', '199', '487', '65', '341', '377', 'x', 'r']

A: 1, 2, 3, 4, 5, 6, 7, 8, 9
****
Q: ['u', 'f', 'q', '79', 'p', '359', 'n', '91', 'u', '397', 'b', 'p', 'o', '419', 'r']

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