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: ['i', 'b', 'w', '409', 'f', '67', 's', '21', 'y', 'c', '401', 'f', 'k', '319']

Output: 0, 1, 2, 3, 4, 6, 7, 9


Input: Consider Input: ['h', '477', 'w', '315', 'k', 'd', '367', '411', '207', 'b', '81', 'k', 'f', '107', '103']

Output: 0, 1, 2, 3, 4, 5, 6, 7, 8


Input: Consider Input: ['251', '481', 'w', 'w', '259', '311', '249']


Output: 1, 2, 3, 4, 5, 8, 9