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: ['a', '441', '227', 'j', '13', '277', 'f', 'o']

Answer: 1, 2, 3, 4, 7


Question: ['e', '307', '191', 'k', 'o', 'j', '99']

Answer: 0, 1, 3, 7, 9


Question: ['21', 'k', 'v', '407', '355', '319', '319', 'u', '409', 'q', '449', '323', 'a', 'v', 't']

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