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: ['u', 'm', 'n', 'h', 'u']

Answer: -1


Question: ['157', '481', 'n', 't', 'd', 'j']

Answer: 1, 4, 5, 7, 8


Question: ['423', 'm', '137', 'f', 'y', 'u', '455', '293', 'z', 'n', 'q', '293']

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