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: ['f', '135', 's', '269', 'x', '45', 'p', '141', 'e']

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


Question: ['163', '375', 'e', 'g', '115', '445', 'c', '393', 'm', '59']

Answer: 1, 3, 4, 5, 6, 7, 9


Question: ['59', 'b', 'x', 'u', '163', 'e', 'f', '295', '371']

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