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: ['j', 's', '127', 'o', 'e', '227', 'k', 'o']

Output: 1, 2, 7


Input: Consider Input: ['357', 'c', 'f', '3', 'q', 'w', 'm', 'l', '137', 'k']

Output: 1, 3, 5, 7


Input: Consider Input: ['q', '433', 'q', '285', 'k', '169', 'w', '129', 'p', '191', 'y']


Output: 1, 2, 3, 4, 5, 6, 8, 9