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.

['g', '169', '93', 'z', 'h', '493', 'r']
1, 3, 4, 6, 9

['353', 'd', 'h', 'd']
3, 5

['59', 'v', '89', '137', 'k', 'v', 'd']

1, 3, 5, 7, 8, 9

