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.

['f', '291', '145', 'd', 'z', '355', 'r']
1, 2, 3, 4, 5, 9

['l', '269', 'l', '379', '359']
2, 3, 5, 6, 7, 9

['151', 'g', '255', 'c', 'k', '231', '277', '187', '373', '453', '321', '365', '435', '215', 'i']

1, 2, 3, 4, 5, 6, 7, 8