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: ['197', 'q']

Output: 1, 7, 9


Input: Consider Input: ['w', 't', 'a', '199', '385']

Output: 1, 3, 5, 8, 9


Input: Consider Input: ['t', 'a', 'k', 'w', 'k', 'n', 't', '401']


Output: 0, 1, 4