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:
['v', 'q', '139', '79', '149', '469', 'g', '239', '221', 'v', '77']

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


Ex Input:
['411', 'n']

Ex Output:
1, 4


Ex Input:
['f', '123', 'o', '307', 'l', '421', '353', '233', 'x', 'x', '251', 't']

Ex Output:

0, 1, 2, 3, 4, 5, 7