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]: ['255', 'u', 's', 'g', '445']
[A]: 2, 4, 5


[Q]: ['h', 't', 'h', 'i', 'c', '441', '117', '463', 'r']
[A]: 1, 3, 4, 6, 7


[Q]: ['175', '389', '145', 'i', '321', 't', '451', 'p', '461', 'x', '265', 'k', 'g', '417', '65']
[A]:
1, 2, 3, 4, 5, 6, 7, 8, 9