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: ['287', 'y', 'b', '79', '39', 'l']

Output: 2, 3, 7, 8, 9


Input: Consider Input: ['151', 'j', 'o', 's', 'q', 'r', '325']

Output: 1, 2, 3, 5


Input: Consider Input: ['z', '247', '269', 's', 'p', '485', 'w', '225', 'h']


Output: 2, 4, 5, 6, 7, 8, 9