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: ['z', 'l', 's', '249', 'e', 'h', 'l']

A: 2, 4, 9
****
Q: ['271', '9', 'v', '93', 'f', 'd']

A: 1, 2, 3, 7, 9
****
Q: ['f', '179', 'r', 'z', 'r', '19']

A:
1, 7, 9
****