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: ['k', '217']
Example Output: 1, 2, 7

Example Input: ['w', 'p', 'r', 'v', 'd']
Example Output: -1

Example Input: ['33', '35']
Example Output:
3, 5