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

['k', '107', '333', '317', 'm', 'w', 'g', 'f']
0, 1, 3, 7

['151', 'm', 'd', '19', 'z', 'g', 'r', 'm', 'a', '253', 'e', 'r', 'b', '187']

1, 2, 3, 5, 7, 8, 9