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.

Example Input: ['y', '101', 'g', 'c', 'z']
Example Output: 0, 1

Example Input: ['k', 'a', '437', '461', 'b', '341', '175']
Example Output: 1, 3, 4, 5, 6, 7

Example Input: ['95', '245', 'v', 'm', '89', '453', '281', 'c', '445', '359', 'v', 'y', 's']
Example Output:
1, 2, 3, 4, 5, 8, 9