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.

['9857', 'G', 'H', '1209', '835', 'O', 'P', 'D', 'F', '7977', 'b', '3487', 'N', 'Z', 'B', 'n', 'D', '5737', '6391', '9995', '9541', 'p', '3317', '3503', '7447', '6135', '8581', 'X', '567', 'r']
G, H, O, P, D, F, b, N, Z, B, n, D, p, X, r, 9857, 1209, 835, 7977, 3487, 5737, 6391, 9995, 9541, 3317, 3503, 7447, 6135, 8581, 567

['g', '6307', '3781']
g, 6307, 3781

['L', 'u', '1653', '3589', 'L', '2529', '3311', '1405', 'R', 'P', 'r', 'E', 'g', '2179', '5749', '3363', '8443', 'O', 'K', '617', '381', 'T', 'd', '1023', '5865', '4625', 'q', 'T']

L, u, L, R, P, r, E, g, O, K, T, d, q, T, 1653, 3589, 2529, 3311, 1405, 2179, 5749, 3363, 8443, 617, 381, 1023, 5865, 4625