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.

['381', 'l', 'z', '323', 'x', '247', '11']
1, 2, 3, 4, 7, 8

['n', '149', 'z', '37']
1, 3, 4, 7, 9

['r', '227', '453', 's']

2, 3, 4, 5, 7

