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.

[Q]: ['s', '391', 'z', '67', '371', '195', '77', '373', 'g', '249', 'm']
[A]: 1, 2, 3, 4, 5, 6, 7, 9


[Q]: ['43', 'n', 's', '453', 'c', '205']
[A]: 0, 2, 3, 4, 5


[Q]: ['e', '93', '81', '9', '415', 'y', '415', '461', '423', '471', 'q', 'a', '139']
[A]:
1, 2, 3, 4, 5, 6, 7, 8, 9