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: ['421', '99', '115', 'x']

Answer: 1, 2, 4, 5, 9


Question: ['a', '55', 's', '71', '271', '211']

Answer: 1, 2, 5, 7


Question: ['a', '225', 'q', 'i', '479', '361', '459', '225', '471', '169']

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