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: ['v', 'n', '303', '355', 'n', '205', '393', '239', '239', 'm', '123', '487']

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


Question: ['i', 'f', 'g', '267', '113', '93', 'r', '401', 'g', 'e']

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


Question: ['251', 'x', '479', 'x', 'v']

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