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]: ['389', 'v', '17', 'n', 'm']
[EX A]: 1, 3, 7, 8, 9

[EX Q]: ['w', '13', 'b', '455', 'b', 'k']
[EX A]: 1, 3, 4, 5

[EX Q]: ['325', '227', 'z', 'h', '59', '249', '441', '229', '79', '453', '11', '37', 'd', '141']
[EX A]:
1, 2, 3, 4, 5, 7, 9