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: ['153', 'b', 'w', 'y', 'k', '385', '221', '153', 'b', '123', 'd', '151', 'y']

Answer: 1, 2, 3, 5, 8


Question: ['445', '449']

Answer: 4, 5, 9


Question: ['m', '263', '259', '331', 'u', 'c', '73', '77', '71', 'a', '155', 'c', 'a', 'c']

Answer:
1, 2, 3, 5, 6, 7, 9