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.

Ex Input:
['377', 'z', '421', '137', 't', 'v', 's', 'l']

Ex Output:
1, 2, 3, 4, 7


Ex Input:
['t', 'v', '469', 'n']

Ex Output:
4, 6, 9


Ex Input:
['289', 'g', '15', 'c', '285', '25', 'f', 'l']

Ex Output:

1, 2, 5, 8, 9