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

['M', 'F', 'V', '3205', 'K', '8097', '6501', 'L', 'x', 'A', '6443', 'w', '1645', '5847', '3579', 'M', 'G']
M, F, V, K, L, x, A, w, M, G, 3205, 8097, 6501, 6443, 1645, 5847, 3579

['1227', '3463', 'Q', '1535', '8891', '2191', '2309', '1977', '7799', 'H', '5099', '8623', '1851', '3879', 'W', 'W', 'J', '9211', '5539', 'F', '2695', '385', '787']

Q, H, W, W, J, F, 1227, 3463, 1535, 8891, 2191, 2309, 1977, 7799, 5099, 8623, 1851, 3879, 9211, 5539, 2695, 385, 787