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.

['d', '25', '323', 'k', 'e']
2, 3, 5

['b', '329', 'm', 'q', 'k', 'z', 'k', '199', 'v', 'l']
1, 2, 3, 9

['w', 'j', '287', 'a', 'g', 'j', 'p', '377', 'l', '29', '471', '345']

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