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]: ['g', '169', '93', 'z', 'h', '493', 'r']
[A]: 1, 3, 4, 6, 9


[Q]: ['229', 'x', '49', 'p', '73', '77', '337', '497']
[A]: 2, 3, 4, 7, 9


[Q]: ['g', 'k', 'w', '89', 'n', '87', '419', 'e', '249']
[A]:
1, 2, 4, 7, 8, 9