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.

[Q]: ['213', '321', 'z']
[A]: 1, 2, 3


[Q]: ['119', '329', 'w']
[A]: 1, 2, 3, 9


[Q]: ['3', '235', 'p', 'g', 'd', '23', '455', 'r', 'k', '471', 'c', '257']
[A]:
1, 2, 3, 4, 5, 7