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.

['487', 'x']
4, 7, 8

['149', '129', 'k']
1, 2, 4, 9

['n', 'j', '7', '141', '335', 'p', 'c', 'w', '97', 'g', 'i', 'd', 's', '253', 'n']

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