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', '475', 'x', '53', '461', 'c']

A: 1, 3, 4, 5, 6, 7
****
Q: ['159', '3', 'f', 'k', 'o', 'm']

A: 1, 3, 5, 9
****
Q: ['345', '385', 'v', 'o', 'u', 'n', '457', 'h', 'v', 'c', 'g', '245', '217', 'a', '407']

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