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:
['h', '281', '113', '119', 'j', '245', 'i', '121', '439']

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


Ex Input:
['157', '481', 'n', 't', 'd', 'j']

Ex Output:
1, 4, 5, 7, 8


Ex Input:
['o', '485', 'u', 'a', 'q', '401']

Ex Output:

0, 1, 4, 5, 8