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: ['151', 'j', 'o', 's', 'q', 'r', '325']

Output: 1, 2, 3, 5


Input: Consider Input: ['311', '147', 'a', '149', 'h']

Output: 1, 3, 4, 7, 9


Input: Consider Input: ['303', 'r', 'k', '387', '405', '161', 'n', '177', '303', 'k', 'f', '35', 'y', '337']


Output: 0, 1, 3, 4, 5, 6, 7, 8