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.

['n', '5329', '7635', 'D', 'D', 'Y', '3097', 'Q', 'S', 'e', '4525', '5485', '6717', 'q', '7315', 'X', '8971', 'd', 'M', '407', '4931', 'o', '139']
n, D, D, Y, Q, S, e, q, X, d, M, o, 5329, 7635, 3097, 4525, 5485, 6717, 7315, 8971, 407, 4931, 139

['7663', 'g', 'H', '5749', 'b', '699', '3975', 'k', 'A', 't', 'B', '4409', '7543', '3459', '9137', 's', 'i', '3073', '3231', '2555', '8569', 'K', 'o', '3137', 'b', 'h']
g, H, b, k, A, t, B, s, i, K, o, b, h, 7663, 5749, 699, 3975, 4409, 7543, 3459, 9137, 3073, 3231, 2555, 8569, 3137

['9391', 's', '3057', '2395', '9387', 'f', 'M', 'T', 'N', '2949', 'Z', '7909', '9669', 'r', '8755', '5583', 'm', 'M', '3649', 'O', 'q', '8769', 'O', '8287', '4135', '579', '8777', '3233', 'l', '4759', 'K', '1863', 'o', 'A', 't', 'V', 'U']

s, f, M, T, N, Z, r, m, M, O, q, O, l, K, o, A, t, V, U, 9391, 3057, 2395, 9387, 2949, 7909, 9669, 8755, 5583, 3649, 8769, 8287, 4135, 579, 8777, 3233, 4759, 1863