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]: ['t', 'u', 'e', 'a', '369', 'e', 'r', 'm']
[EX A]: 3, 6, 9

[EX Q]: ['o', 'k', 'i']
[EX A]: -1

[EX Q]: ['349', '111', '69', '243', 'd', 'l', 'i', '423', '241', 'r', '337', 'm']
[EX A]:
1, 2, 3, 4, 6, 7, 9