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.

['461', 'u', 't']
1, 4, 6

['u', 'z', 'p', '99', 'b']
9

['327', 'y', '313', 'l', 'k']

1, 2, 3, 7

