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.

['8017', 'l', '5589', 'q', 'u', 'x', '9165', 'T', 'O', 'H', 'Y', '8265', '5893', '3977', 'w', '9953', 'e', '4913', 'Q', 'f', 'U', 'L', '2097', 'B', 'L', 'z', '151', 'S', '4955', '7769', 'N', '5601', 'w', 'i', '5761', 'c', 'H']
l, q, u, x, T, O, H, Y, w, e, Q, f, U, L, B, L, z, S, N, w, i, c, H, 8017, 5589, 9165, 8265, 5893, 3977, 9953, 4913, 2097, 151, 4955, 7769, 5601, 5761

['Y', '4643', '7575', '4521', '1073', 'J', 'v', 'y', '7501', 'G', 'j', 'c', 'Z', 'A', '4689', 'i', 'Z', '3085', 'e', '2693', '1687', 'u', 'A', '2471', 'Z']
Y, J, v, y, G, j, c, Z, A, i, Z, e, u, A, Z, 4643, 7575, 4521, 1073, 7501, 4689, 3085, 2693, 1687, 2471

['E', '8125', '7889', 't']

E, t, 8125, 7889