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', '209']
0, 2, 9

['223', '71']
1, 2, 3, 7

['367', '349', '259', 'w', '473', 'i', 'o', '303', '313', 'b', 'w', '101', 'l']

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