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: ['359', '233', '455', '449', 'h']

A: 2, 3, 4, 5, 9
****
Q: ['j', 'w', 'h', 'r', 'w', 'h', 'd', 'f', '81', 'g', '145']

A: 1, 4, 5, 8
****
Q: ['a', '437', '231', '205', 'i', 'u', 'e', '287', 'p', 'b', '237', 'b', 'g']

A:
0, 1, 2, 3, 4, 5, 7, 8
****