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: ['477', 'a', 'n', 'r', '457', 'g', 'c']

Output: 4, 5, 7


Input: Consider Input: ['k', 'q', 'a', 'u', 'q']

Output: -1


Input: Consider Input: ['47', 'n', '265', 'p', 'a', 'z']


Output: 2, 4, 5, 6, 7