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]: ['M', 'G']
[A]: M, G


[Q]: ['t', '5675', 'r', '8935', '9319', 's', 'e', '4559', '3367', 'q', 'p', 'z', '2521', '9715', '2171', 'l', '5045', 'j', '5027', '95', 'Q', 'g', 'B', '6599', 'p', 'g', 'Q', 'm']
[A]: t, r, s, e, q, p, z, l, j, Q, g, B, p, g, Q, m, 5675, 8935, 9319, 4559, 3367, 2521, 9715, 2171, 5045, 5027, 95, 6599


[Q]: ['x', '9677', '1777', '113', '7001', '5395', '3407', '7165', 'I', 'q', '8575', 'd', 'G', 'f', '8477', '441', '4813', '7881', 'X', '9047', '8197', 'M', 'a', 'u', '485', 'Z', '4059', 'p', 'x', '8987', '971']
[A]:
x, I, q, d, G, f, X, M, a, u, Z, p, x, 9677, 1777, 113, 7001, 5395, 3407, 7165, 8575, 8477, 441, 4813, 7881, 9047, 8197, 485, 4059, 8987, 971