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: ['415', '365', '373', 't', 'n']
Example Output: 1, 3, 4, 5, 6, 7

Example Input: ['l', 'm', 'h', '87', '265', 'e', '415', '325', 'p', 'b', '385']
Example Output: 1, 2, 3, 4, 5, 6, 7, 8

Example Input: ['h', 'e', 'w', 'j', 'x', 'g', '479']
Example Output:
4, 7, 9