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.

['a', '491', '477', '193', 'b', 'l', 'c']
1, 3, 4, 7, 9

['f', '135', 's', '269', 'x', '45', 'p', '141', 'e']
1, 2, 3, 4, 5, 6, 9

['157', 'm', 'l', 'n', '347', '401', '371', 'b', 'v', '361', 'd', '367']

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