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.
--------
Question: ['c', 'm', 'h', 'c', '69', '233', 'j', 'g', 'r', 'x', '59', 'p', '469']

Answer: 2, 3, 4, 5, 6, 9


Question: ['469', 'y', 'j', 'u', '475', 'k', 'k']

Answer: 4, 5, 6, 7, 9


Question: ['d', '395', 'd', '233', '271']

Answer:
1, 2, 3, 5, 7, 9