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.

['z', 'e', 'c']
-1

['i', 'z', '131', '449', '141', 's']
1, 3, 4, 9

['k', 'f', 'f', 'u', '479', 'u', '341', 'u', '143', 'b', 'u', '165', 'a']

1, 3, 4, 5, 6, 7, 9