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', '271', 'h', 'm', '365']

A: 1, 2, 3, 5, 6, 7
****
Q: ['473', '357', 'i', 'j', '299', 's', '495', '165', 'o', 'l', 'x', 'v', '1', 'o', '469']

A: 1, 2, 3, 4, 5, 6, 7, 9
****
Q: ['455', 'z', '289', '187', 'x', 's', '141', 'j', '53', 'i', '465', '219', 'l', '117']

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