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:
['y', 'o', '287', 'm', 's', '61']

Ex Output:
1, 2, 6, 7, 8


Ex Input:
['375', '457', '423', 'q', 't']

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


Ex Input:
['383', '365', 'i', 'x', 'm', '73', '497', 'g', '29', 'o', 't']

Ex Output:

2, 3, 4, 5, 6, 7, 8, 9