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.

['7643', '1863', 'D', '2397', 'Y', 'A', 'd', '8747', 'D', 'O', '7995', '8713', '2757', '3379', '5481', '3891', '6383', '8981', 'N', '2679', 'O', '5435', '5619', 'g', '4561', 'm', 'T', '2791', 'Q', '2441', '1601', 'K', '5897', '7117', '4835']
D, Y, A, d, D, O, N, O, g, m, T, Q, K, 7643, 1863, 2397, 8747, 7995, 8713, 2757, 3379, 5481, 3891, 6383, 8981, 2679, 5435, 5619, 4561, 2791, 2441, 1601, 5897, 7117, 4835

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

['c', '903', '6201', 'O', 'B', '9293', '4047', '4257', 'U', 'o', '6355', 'f', 'K', 'Z', '2949', 'z', '3077', '3083']

c, O, B, U, o, f, K, Z, z, 903, 6201, 9293, 4047, 4257, 6355, 2949, 3077, 3083