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]: ['v', 'j', 'l', 'f', 'n', '185', 'x', '367']
[A]: 1, 3, 5, 6, 7, 8


[Q]: ['u', 'h', 'z', '227', '497', '381', '101', '453', '5']
[A]: 0, 1, 2, 3, 4, 5, 7, 8, 9


[Q]: ['233', '315', '67', '41', 'g', 'd', '123', '389', 'e', '43', 'h', 'n']
[A]:
1, 2, 3, 4, 5, 6, 7, 8, 9