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.

['175', 'c', 'c']
1, 5, 7

['z', '271', 'h', 'm', '365']
1, 2, 3, 5, 6, 7

['o', '463', '49', '63', '299', '319', 'u', '253', 'q', '409']

0, 1, 2, 3, 4, 5, 6, 9