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]: ['8987', 'M', 'u', 'd', '6277', '4233', 'y', 'D', 'd', '3387', 'n', '9509', '987', 'S', 'c', '6843', '587', '3545', 'Q', 'B', '779', '9547', 'c', 'r']
[A]: M, u, d, y, D, d, n, S, c, Q, B, c, r, 8987, 6277, 4233, 3387, 9509, 987, 6843, 587, 3545, 779, 9547


[Q]: ['h', '2041', '7621', 'f', 'S', '665', 'x', 'g', 'E', '4371', '6589', 'l', 'C', '789', 'm', '2215', '1017', '3089', 'X', '8773']
[A]: h, f, S, x, g, E, l, C, m, X, 2041, 7621, 665, 4371, 6589, 789, 2215, 1017, 3089, 8773


[Q]: ['m', 'r', '3299', 'V', '1245', '1627', '6981', 'M', 'E', '4223', '1501', 'd', 'Q', 'Y', '4689', 'j', '7969', '8719', 'x', '531', 'O', '3461', 'm', '4819', 'j', '1285', 'd', 'h', '8955', 'N', 'C']
[A]:
m, r, V, M, E, d, Q, Y, j, x, O, m, j, d, h, N, C, 3299, 1245, 1627, 6981, 4223, 1501, 4689, 7969, 8719, 531, 3461, 4819, 1285, 8955