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.

['r', '171', 'p', '299', 'u', 'n', '421', '331', 'h', '21', 'h', 'x', '435', '327', '373']
1, 2, 3, 4, 5, 7, 9

['299', '371', '313', '17', 't', 'q']
1, 2, 3, 7, 9

['h', '149', '81', 'd', '141', 't', 'k', 'h', '245', 'd', '203', 'p', 't', 's']

0, 1, 2, 3, 4, 5, 8, 9