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.
--------
Question: ['k', '233', 'h', 'd', 's', '83', '149', 'p', 'm']

Answer: 1, 2, 3, 4, 8, 9


Question: ['299', '371', '313', '17', 't', 'q']

Answer: 1, 2, 3, 7, 9


Question: ['201', 'b', '259', '237', 'f', 'i', '485', '195', '103']

Answer:
0, 1, 2, 3, 4, 5, 7, 8, 9