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: ['341', 'e', 'j', '385', 'o', 'z', 'z', '187', 'm', '73', 'u', '413']

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


Input: Consider Input: ['377', 'z', '421', '137', 't', 'v', 's', 'l']

Output: 1, 2, 3, 4, 7


Input: Consider Input: ['81', '229', 'j', '89', '31', 'h', 'w', 'd', '149', 'e', '173', 'c', 'm', '101']


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