In this task, you are given an input list. A list contains several comma-separated items written within brackets. You need to collate all the alphabetical elements at the start of the list followed by all the numerical elements of the list. Maintain the order in which the alphabetical elements appear in the given input list, and do the same for the numerical elements.

Q: ['q', 'y', 'h', '6797', 'm', 'p', '3303', '4349', '9779', '6367', '3107', 'R', 'C', '6105', '6165', '6611', 'O', '6697', 'l', 'L', 'Q', '8817', 'x']

A: q, y, h, m, p, R, C, O, l, L, Q, x, 6797, 3303, 4349, 9779, 6367, 3107, 6105, 6165, 6611, 6697, 8817
****
Q: ['g', 'b', 'z']

A: g, b, z
****
Q: ['5641', '749', 'V', '1273', '6783', 'H', 'C', '8543', 'F', 'Q', 'k', 'Y', 'O', 'Y', '985', '8971', 'q', 'R', '4951']

A:
V, H, C, F, Q, k, Y, O, Y, q, R, 5641, 749, 1273, 6783, 8543, 985, 8971, 4951
****