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.

['8987', 'M', 'u', 'd', '6277', '4233', 'y', 'D', 'd', '3387', 'n', '9509', '987', 'S', 'c', '6843', '587', '3545', 'Q', 'B', '779', '9547', 'c', 'r']
M, u, d, y, D, d, n, S, c, Q, B, c, r, 8987, 6277, 4233, 3387, 9509, 987, 6843, 587, 3545, 779, 9547

['5115', '8571', 'v', '1681', '1523', 'X', 'L', '1295', '1543', '3873', 'O', '4525', '9563', 'y', 'Z', '1841', 'F', 'H', '1433', 'x', 'v', 'X', 'r', '785', 'y', 'M', 'v', '9625', '9009']
v, X, L, O, y, Z, F, H, x, v, X, r, y, M, v, 5115, 8571, 1681, 1523, 1295, 1543, 3873, 4525, 9563, 1841, 1433, 785, 9625, 9009

['813', 'N', '7233', 'E', 'G', '7979', '7549', '1953', 'i', '5087', 'd', 'M', 'b', 'l', 'Q', 'P', '3103', 'F', '5463', 'X', 'o', 'T', 'i', 'W', 'I', '3417', '1799', '813', 'c', '2349', '7379', '4065']

N, E, G, i, d, M, b, l, Q, P, F, X, o, T, i, W, I, c, 813, 7233, 7979, 7549, 1953, 5087, 3103, 5463, 3417, 1799, 813, 2349, 7379, 4065