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.

Input: Consider Input: ['z', '143', 'o', '365', 'g', 'h', 'y', 'p', 'j']

Output: 1, 3, 4, 5, 6


Input: Consider Input: ['95', '205', 'c', '101']

Output: 0, 1, 2, 5, 9


Input: Consider Input: ['303', '217', 'b', 'r', 'r', '425', 'u', '59', 'q', 'v', '255', '345']


Output: 0, 1, 2, 3, 4, 5, 7, 9


