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: ['t', '437', 'o', 'w', 'x', 'e', 'r', 'r', '149', 'd', '391']

Answer: 1, 3, 4, 7, 9


Question: ['i', 'b', 'w', '409', 'f', '67', 's', '21', 'y', 'c', '401', 'f', 'k', '319']

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


Question: ['227', 'b', 'b', '277', '129', 'h', 'v', 'n', '261', 'u', 'd']

Answer:
1, 2, 6, 7, 9