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: ['i', 'f', '109']

Answer: 0, 1, 9


Question: ['s', 't', '189', 'j', 'r']

Answer: 1, 8, 9


Question: ['199', '285', 'b', 'u', 'm', '413', 'a', 'o', '177', 's', 'x', 'q', '229', '287', '483']

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