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: ['r', '321', '355', 'w', 'm', 'v', 'a', 'u', '455', 'n', '169']

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


Input: Consider Input: ['59', '437', '145', '165', '217', 'l', '185', '495', 'z']

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


Input: Consider Input: ['403', '295', '5', '427', '379', 'n', '281', '129', '181', 's', '181', '199']


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