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: ['239', '439']

A: 2, 3, 4, 9
****
Q: ['h', 't', 'h', 'i', 'c', '441', '117', '463', 'r']

A: 1, 3, 4, 6, 7
****
Q: ['33', '435', '333', '305', 'a', '363', '383', '223', 'u', 'h', '273', 'x', 'm', '381', '321']

A:
0, 1, 2, 3, 4, 5, 6, 7, 8
****