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.

[EX Q]: ['219', '127', '449', 'u', 'g']
[EX A]: 1, 2, 4, 7, 9

[EX Q]: ['v', 'w', 'k']
[EX A]: -1

[EX Q]: ['f', '429', '291', '277', '173', '289', '239', '107', 'c', 'h', '295', '317', '393', '465']
[EX A]:
0, 1, 2, 3, 4, 5, 6, 7, 8, 9