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.

['g', 'g', '9271', 'D', '9667', 'x', '117', 'E', '4013', 'D', 'M', 'Y', '3887', '5931', '273', '5333', 'Q', '1303', '4517']
g, g, D, x, E, D, M, Y, Q, 9271, 9667, 117, 4013, 3887, 5931, 273, 5333, 1303, 4517

['A', 'J', 'H', 'r', 'q', 'N', 'B', 'W', 'B', '4775', '9463', '601', '5213', '1179', 'H', '2055', 'v', 'x', 'K', 'U', 'B', '8337', '3011', '7853', 'j', 'u', '4223']
A, J, H, r, q, N, B, W, B, H, v, x, K, U, B, j, u, 4775, 9463, 601, 5213, 1179, 2055, 8337, 3011, 7853, 4223

['E', 'c', 'T', '2639', 'X', '1549', 'f', 'P', '8619', 's', 'H', 'N', '8185', '3895', 'Z']

E, c, T, X, f, P, s, H, N, Z, 2639, 1549, 8619, 8185, 3895