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]: ['221', '191', 'w', 'l', 'h', 'a']
[EX A]: 1, 2, 9

[EX Q]: ['i', '127', 'j', 'z', '489', '359', 'i', 'j', 'y', 'p', 'm', 'z']
[EX A]: 1, 2, 3, 4, 5, 7, 8, 9

[EX Q]: ['151', '23', 'n', 'y', 'f', '185', 's', 'z', '159', 's', 'j']
[EX A]:
1, 2, 3, 5, 8, 9