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', 'y', 'h', '6797', 'm', 'p', '3303', '4349', '9779', '6367', '3107', 'R', 'C', '6105', '6165', '6611', 'O', '6697', 'l', 'L', 'Q', '8817', 'x']
q, y, h, m, p, R, C, O, l, L, Q, x, 6797, 3303, 4349, 9779, 6367, 3107, 6105, 6165, 6611, 6697, 8817

['7877', '8991', '5669', 'r', '4699', '3493', '9175', 'j', 'e', '9885', '9621', 'a', '8083', 'L', 'G', '787', '4821', '6591', '2251']
r, j, e, a, L, G, 7877, 8991, 5669, 4699, 3493, 9175, 9885, 9621, 8083, 787, 4821, 6591, 2251

['w', '9987', '1221', '1169', '9061', 'Z', 'K', 'I', '3']

w, Z, K, I, 9987, 1221, 1169, 9061, 3