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]: ['g', 't', '31', 't', 's']
[EX A]: 1, 3

[EX Q]: ['45', 'n', 'u', '199', 'y', 'w']
[EX A]: 1, 4, 5, 9

[EX Q]: ['c', 'n', 'a', 't', '151', '305', '275', 'o', 'r', '429', 'v', '485', 'b', 'z', '265']
[EX A]:
0, 1, 2, 3, 4, 5, 6, 7, 8, 9