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.

['h', 'i', 'e', '319', 'g', '187', '395', 'f', '327', 'y']
1, 2, 3, 5, 7, 8, 9

['93', 'w', '357', 'z', '293', '83', 't', 'w', '11']
1, 2, 3, 5, 7, 8, 9

['111', 's', 'o', '291', '413', '399', 'c']

1, 2, 3, 4, 9