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: ['w', 't', 'a', '199', '385']

Output: 1, 3, 5, 8, 9


Input: Consider Input: ['157', 'k', 'o', 'a', '279', 'g']

Output: 1, 2, 5, 7, 9


Input: Consider Input: ['x', '457', 'm', '467', '215', '113', '75', '77', '445', '309', '363', '215', 's', 'p', 'o']


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