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]: ['C', 'l', 'm', 'i', '5697', '6923', '4875', 'N', 'E', '8035', 'I', 'h', 'K', 'x', 'q', '645', '9387', 'Z', '4217', 'm']
[A]: C, l, m, i, N, E, I, h, K, x, q, Z, m, 5697, 6923, 4875, 8035, 645, 9387, 4217


[Q]: ['e', 'd', 'u', '2981', '3657', '2979', '6829', 'C', 'P', 'n', '359', '4099', 'N', 'I', 'q', '8285', 'o', 'S', 'I', '6003', '7547', 'u', 'u', '341']
[A]: e, d, u, C, P, n, N, I, q, o, S, I, u, u, 2981, 3657, 2979, 6829, 359, 4099, 8285, 6003, 7547, 341


[Q]: ['2021', '4505', '5081', 'g', '7677', 'm', '7897', '6691', '9335', '7989', '8315', 'w', '1959', '8181', 'E', '223', 'K', 'M', '9399', '283', '6581', '9355', '1863', 'm', 'Q', '6825', '8751', '75', '6945', '8677', 's', '2217', '3505', '8457', '6239', 'A']
[A]:
g, m, w, E, K, M, m, Q, s, A, 2021, 4505, 5081, 7677, 7897, 6691, 9335, 7989, 8315, 1959, 8181, 223, 9399, 283, 6581, 9355, 1863, 6825, 8751, 75, 6945, 8677, 2217, 3505, 8457, 6239