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:
['h', 'i', 'e', '319', 'g', '187', '395', 'f', '327', 'y']
answer:
1, 2, 3, 5, 7, 8, 9


question:
['n', 'f', '355', 'e', '113', '131', '443', '275', '249', '487']
answer:
1, 2, 3, 4, 5, 7, 8, 9


question:
['271', 'c', 'z', 'x', 'k', '25', 'z', 'e', 'z', 'p', 'l', 'j', 'w', 'o']
answer:

1, 2, 5, 7