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]: ['k', '233', 'h', 'd', 's', '83', '149', 'p', 'm']
[A]: 1, 2, 3, 4, 8, 9


[Q]: ['q', 'u', '199', 'v', '249']
[A]: 1, 2, 4, 9


[Q]: ['t', 'q', 'a', '65', 'p', '275', '27', 'h', 'p', 'a', '265', '107', 'v', 'k']
[A]:
0, 1, 2, 5, 6, 7