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]: ['j', 'k']
[A]: -1


[Q]: ['229', 'q', 'e']
[A]: 2, 9


[Q]: ['t', 'f', 'w', '205', '337', '441', 'k', 'p', '13', '427', '117', 'p']
[A]:
0, 1, 2, 3, 4, 5, 7