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.

Example Input: ['203', 'p', 'r', 'r', 'c', 'w', 'z', 'w', 'a', '203', 'n']
Example Output: 0, 2, 3

Example Input: ['403', 'j', 'x', '187', '311', 'g', 'z', 'p', '287', 'w', 'k', 'm']
Example Output: 0, 1, 2, 3, 4, 7, 8

Example Input: ['k', '175', 'h', 'k', '89', 'f', '271', '201', '373', '195', 'z', 'u', 'p', 'm', 's']
Example Output:
0, 1, 2, 3, 5, 7, 8, 9