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.

['193', '195', '411', 'p', '161', 'j']
1, 3, 4, 5, 6, 9

['363', 'u', '179', 'e', '279', 'a', '151', '173', 'e', '61', '213']
1, 2, 3, 5, 6, 7, 9

['v', 't', '457', 'g', '125', 'x', 'm', 'g', '337', '301', 'o', '57', 'x', 't']

0, 1, 2, 3, 4, 5, 7