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:
['q', 'g', 'z', '309']

Ex Output:
0, 3, 9


Ex Input:
['445', '449']

Ex Output:
4, 5, 9


Ex Input:
['129', 't', 'h', 'c', 'c', '55']

Ex Output:

1, 2, 5, 9