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.

['217', 'c', 'h', 'e', 't', '331', '69']
1, 2, 3, 6, 7, 9

['229', 'q', 'e']
2, 9

['p', 'c', '477', '37', 'v', 'w', '387', '183', '81', '285', 'q', '267']

1, 2, 3, 4, 5, 6, 7, 8