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.
--------
Question: ['r', 'g', '5847', '329', '6267']

Answer: r, g, 5847, 329, 6267


Question: ['z', '4877', 'j']

Answer: z, j, 4877


Question: ['X', 'w', '1149', '4713', '3513', 'I', 's', 'e', 'o', '4909', 'i', 'X', 'Q', '5613', 'w', 'Q', '8843', 'p', 'k', 'L', 'W', 'a', 'e', 's', 'm', 't', 'X', 'P', 'S', '6717', 'h', '3799']

Answer:
X, w, I, s, e, o, i, X, Q, w, Q, p, k, L, W, a, e, s, m, t, X, P, S, h, 1149, 4713, 3513, 4909, 5613, 8843, 6717, 3799