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.

[EX Q]: ['171', 'h', '53', 'o', 'q']
[EX A]: 1, 3, 5, 7

[EX Q]: ['s', '45']
[EX A]: 4, 5

[EX Q]: ['m', '265', 'z', 'r', 'k', '203']
[EX A]:
0, 2, 3, 5, 6