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: ['h', 'l', 'x', 'v', 'v', '413', 'p', '45', '105', '183', 'p', 'k']

A: 0, 1, 3, 4, 5, 8
****
Q: ['s', '391', 'z', '67', '371', '195', '77', '373', 'g', '249', 'm']

A: 1, 2, 3, 4, 5, 6, 7, 9
****
Q: ['q', '209', '23', 'w', 'n', '229', '481', 'x', '367', 'j', 'k', '407', 'k', 'f', 'u']

A:
0, 1, 2, 3, 4, 6, 7, 8, 9
****