instruction:
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.
question:
['61', '417', '437', '489', '383', 'n', '11', 'o', 'a', 'v', '37', 'q', '317']
answer:
1, 3, 4, 6, 7, 8, 9


question:
['s', 'd']
answer:
-1


question:
['r', '167', 'p', 'p', 'y', 'e', '291', '73', '179', 'e', '127', 'w']
answer:

1, 2, 3, 6, 7, 9