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:
['177', '323', 'q', 'e', 'x', 'p', '3', 'c', 'e', '23', 's', '407', 'l', '21', 'z']

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


Ex Input:
['i', 'b', 'w', '409', 'f', '67', 's', '21', 'y', 'c', '401', 'f', 'k', '319']

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


Ex Input:
['243', 'k', '283', '383', '103']

Ex Output:

0, 1, 2, 3, 4, 8