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.

['2217', '9971', 'M', 'f', '407', 'q', '1233', 'f', '6335', '8037', 'l', 'Z', 'w', '8193', '891', 'X', '7163', 'P']
M, f, q, f, l, Z, w, X, P, 2217, 9971, 407, 1233, 6335, 8037, 8193, 891, 7163

['y', 'u', '2937', 'N', 'v', 'O', '7611']
y, u, N, v, O, 2937, 7611

['6917', 'f', '2383', '373', '841', 'H', 'e', '2761', '5273', 'I', 'J', 'j', '1173', 'O', 'Z', '3207', '1591', 'A', 'V', '341', '7621', '2223', 'G', '9463', 'U', 'A', '6169', '125', '3033', 'q', 'M', '8587', '7653']

f, H, e, I, J, j, O, Z, A, V, G, U, A, q, M, 6917, 2383, 373, 841, 2761, 5273, 1173, 3207, 1591, 341, 7621, 2223, 9463, 6169, 125, 3033, 8587, 7653