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.

['t', '251', 'b', '241', 'z', '255']
1, 2, 4, 5

['213', '321', 'z']
1, 2, 3

['m', 'w', 'r', '259', '449', '319', '31', 'r', 'm']

1, 2, 3, 4, 5, 9