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]: ['q', 'u']
[A]: -1


[Q]: ['s', '391', 'z', '67', '371', '195', '77', '373', 'g', '249', 'm']
[A]: 1, 2, 3, 4, 5, 6, 7, 9


[Q]: ['35', 'w', '231', '485', '479', 'd', '441', 'a', '487', '379', 'g']
[A]:
1, 2, 3, 4, 5, 7, 8, 9