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: ['487', 'x']

Answer: 4, 7, 8


Question: ['f', 'u', '349', '275', 'm', '41', '283', 'z', 'd', 'a', 'd', '319', '135']

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


Question: ['169', 's', '455', '85', 'e', '33', '147', 'e', 'c', '141', '253', '409', 'x', '361']

Answer:
0, 1, 2, 3, 4, 5, 6, 7, 8, 9