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]: ['223', '55', 'l', '461']
[EX A]: 1, 2, 3, 4, 5, 6

[EX Q]: ['c', 'u', 'b', '347', '191']
[EX A]: 1, 3, 4, 7, 9

[EX Q]: ['249', 'l', 'j', '23', 'o', '125', '369', 'i', '237', 'i', '491']
[EX A]:
1, 2, 3, 4, 5, 6, 7, 9