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]: ['u', 'r']
[EX A]: -1

[EX Q]: ['e', '307', '191', 'k', 'o', 'j', '99']
[EX A]: 0, 1, 3, 7, 9

[EX Q]: ['31', 'j', 'j', '249', '229', 'b', '439', 'a', '99', '427', '441']
[EX A]:
1, 2, 3, 4, 7, 9