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:
['375', '457', '423', 'q', 't']

Ex Output:
2, 3, 4, 5, 7


Ex Input:
['k', '217']

Ex Output:
1, 2, 7


Ex Input:
['i', '371', '389', 'a', '29', 'd', '219', 'l', '397', 'o', '239', '175', '113']

Ex Output:

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