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: ['d', '25', '323', 'k', 'e']

Output: 2, 3, 5


Input: Consider Input: ['429', 'a', 'g', '7', 'j', 'd', 'y', '113']

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


Input: Consider Input: ['y', 'j', '107', 'c', 'd', 'y', 'f', '27', 'e', 'x', 'z', '255', '163', '61']


Output: 0, 1, 2, 3, 5, 6, 7