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:
['183', '235', 'a', '261', 'z', 'n', 's', 'q', 'm', '311', '399', '457']

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


Ex Input:
['j', '131', 'e', 'c', '149', '325', 'h', 'l', 'i', 'q', '151']

Ex Output:
1, 2, 3, 4, 5, 9


Ex Input:
['481', 'n', '89', 'g', 'k', '429', '279', 'r', 'k', '439', 'e', '445', 'c', 'y', '479']

Ex Output:

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