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: ['279', 'm', '453', 's', 'x', 'g', 'i', 'x', 'd']

A: 2, 3, 4, 5, 7, 9
****
Q: ['213', '321', 'z']

A: 1, 2, 3
****
Q: ['j', '55', 'e', 'l', '417', '65', 'f', 't', '199', 'f', '329', 'y', '281', '97']

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