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:
['479', 's', 'g']

Ex Output:
4, 7, 9


Ex Input:
['93', 'w', '357', 'z', '293', '83', 't', 'w', '11']

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


Ex Input:
['w', 'y', 'w', '465', 'u', 'r', '75', 'i', 'd', 'w', 'i', '161', '487', 'o']

Ex Output:

1, 4, 5, 6, 7, 8