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

['Z', '2419', 'I', '3939', '105', '5799', '7185', '4355', '4357', 'b']
Z, I, b, 2419, 3939, 105, 5799, 7185, 4355, 4357

['2941', 'm', 'F', '5823', '9235', '2571', 'P', '6347', 'W', 'Q', 'w', 'P', 'G', '9617', 'w', '8091', '6447', '3417', 'U', '5975', '7783', '7097', 'h', 'G', '2587', '1349', '7471', '2029', 'Q', 'l', 'M', 'O', '1283', '5483', 'o', '173', '3613', '8943', '5259', 'k']

m, F, P, W, Q, w, P, G, w, U, h, G, Q, l, M, O, o, k, 2941, 5823, 9235, 2571, 6347, 9617, 8091, 6447, 3417, 5975, 7783, 7097, 2587, 1349, 7471, 2029, 1283, 5483, 173, 3613, 8943, 5259