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:
['229', 'q', 'e']

Ex Output:
2, 9


Ex Input:
['85', '101', 'j', 'g', 'o', 'f', 'w', 'o', 'm', '45', 'e', 'z']

Ex Output:
0, 1, 4, 5, 8


Ex Input:
['97', '179', 'w', 'm', '275', '303', '415', '39']

Ex Output:

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