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: ['345', '393', 'v', 'l', 'b', 'd', 'k', 'q', 'x']

Answer: 3, 4, 5, 9


Question: ['279', '115']

Answer: 1, 2, 5, 7, 9


Question: ['125', 'n', 'd', 'h', '229', '333', 'c', '263', 'o', '403', 'o', 't', 'n']

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