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.

Ex Input:
['23', 'p', '409', '305', 'z', 'q', '295', '391']

Ex Output:
0, 1, 2, 3, 4, 5, 9


Ex Input:
['293', '473', '79', 'j', '455', '285', 'k', 'd', '379', '249', '73', '229']

Ex Output:
2, 3, 4, 5, 7, 8, 9


Ex Input:
['125', '81', '55', '309', 'y', 'z', 'j', 'z', 'z', 'v', '209', 'd', 'v', 'q']

Ex Output:

0, 1, 2, 3, 5, 8, 9