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]: ['299', '371', '313', '17', 't', 'q']
[EX A]: 1, 2, 3, 7, 9

[EX Q]: ['385', 'b', 'c']
[EX A]: 3, 5, 8

[EX Q]: ['191', 'j', 'u', '405', '107', 'k', 'b', 'z']
[EX A]:
0, 1, 4, 5, 7, 9