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.

Let me give you an example: ['q', '31', 'a', 'd', '53', '85', 'p', '77']
The answer to this example can be: 1, 3, 5, 7, 8
Here is why: Here, the numbers in the list are '31', '53', '85' and '77', and the unique digits used in the list are '1, 3, 5, 7, 8' in ascending order.

OK. solve this:
['q', '99', '35', '395', 'c', '271', 'h', '393', 'g', 'f', '481']
Answer:
1, 2, 3, 4, 5, 7, 8, 9