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: ['a', '55', 's', '71', '271', '211']

Answer: 1, 2, 5, 7


Question: ['q', 'g', 'z', '309']

Answer: 0, 3, 9


Question: ['317', 'j', '421', 'g', 'l', 's', '389', '231', 'b', '249', '33', 'm', '185', '9', '225']

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