In this task, you are given an input list A comprising of numbers and alphabets. You need to extract and sort the unique alphabets in the list. The alphabets in the input list will only be in lowercase. Return -1 if there is no alphabet in the input list.

Q: ['n', 'h', 'j', '5945', '8511', 'y', '7739', '4717', '2483', 'p', '9545', '7647', '9863', '5591', '5393', 'i', '9225', '589', '1497', 'j', 'm', '2397', 'a', 'd']

A: a, d, h, i, j, m, n, p, y
****
Q: ['z', '2519', '4799', '4715', '7165', 'r', 'r', 'l', 'n', '6925', '8935', '9795', '5489', 'v', 'u', '6527', '2241', 'u', 'c', 'w', '9755', 'w', '9823', 'g']

A: c, g, l, n, r, u, v, w, z
****
Q: ['6873', '7073', '3087']

A:
-1
****
