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: ['285', 'f', '469', 'b', '161', 'q', 'l']

A: 1, 2, 4, 5, 6, 8, 9
****
Q: ['339', '473', '485']

A: 3, 4, 5, 7, 8, 9
****
Q: ['221', '317', 'w', '303', 'u', '381', '173', 'c', '487', 'n', '143', '241', '311', 'b']

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