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.

[Q]: ['175', 'c', 'c']
[A]: 1, 5, 7


[Q]: ['219', '127', '449', 'u', 'g']
[A]: 1, 2, 4, 7, 9


[Q]: ['323', '31', 'a', 'o', 'e', 'v', 'n', '173', '167', 'q', '203', '287', 'r']
[A]:
0, 1, 2, 3, 6, 7, 8