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.

['119', '329', 'w']
1, 2, 3, 9

['t', '493', 's', 'f', '279', 'f']
2, 3, 4, 7, 9

['x', 'x', '393', 'j', 'y', 'g', '349', '25', 't', '175', '21']

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