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:
['s', 't', '189', 'j', 'r']

Ex Output:
1, 8, 9


Ex Input:
['w', 't', 'a', '199', '385']

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


Ex Input:
['o', 'r', '295', 'k', 'a', '447', 's', 'l', 'o', '331', 'i']

Ex Output:

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