instruction:
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:
['2217', '9971', 'M', 'f', '407', 'q', '1233', 'f', '6335', '8037', 'l', 'Z', 'w', '8193', '891', 'X', '7163', 'P']
answer:
M, f, q, f, l, Z, w, X, P, 2217, 9971, 407, 1233, 6335, 8037, 8193, 891, 7163


question:
['X', '4861', '4531']
answer:
X, 4861, 4531


question:
['P', 'U', '3337', 'A', '253', '6273', 'j', '603', 'M', 'a', '269', 't', '3903', '567', 'q', '421', '6243', 'q', '4611', 'P', 'n', '7261', '2613', 'U', '2263', 'z', 'M', '7117', 'M', '9821', 'N', '3571', '6799', '6227']
answer:

P, U, A, j, M, a, t, q, q, P, n, U, z, M, M, N, 3337, 253, 6273, 603, 269, 3903, 567, 421, 6243, 4611, 7261, 2613, 2263, 7117, 9821, 3571, 6799, 6227