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]: ['239', '439']
[EX A]: 2, 3, 4, 9

[EX Q]: ['n', '149', 'z', '37']
[EX A]: 1, 3, 4, 7, 9

[EX Q]: ['t', 'l', '245', '93', 'i', 'x', 'o', 'c', 'f', '395', '497', '375', '481', '411', '299']
[EX A]:
1, 2, 3, 4, 5, 7, 8, 9