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:
['B', 'T', 'y', '4863', '715', 'O', 'i', 'n', '4171', '5175', 's', '4793', '9007', '9755', 'o', 'z', 'S', 'J', 'b', 'q', '5045', '7965']
answer:
B, T, y, O, i, n, s, o, z, S, J, b, q, 4863, 715, 4171, 5175, 4793, 9007, 9755, 5045, 7965


question:
['Z', '6995', 'e', '9773', 'w', '7265', '647', 'q', '2321', 's', 'W', 'M', 'b']
answer:
Z, e, w, q, s, W, M, b, 6995, 9773, 7265, 647, 2321


question:
['i', '7063', 'm', 'Z', 'B', 'y', 'r', '6151', 'T', 'j', 't', '3597', '937', '2829', '8039', 'w', '6565', '4579', '5735', '5903', 'Z', '3577', '8881', '5191', 'k', '9295', '3687', '1473', 'w', 'i']
answer:

i, m, Z, B, y, r, T, j, t, w, Z, k, w, i, 7063, 6151, 3597, 937, 2829, 8039, 6565, 4579, 5735, 5903, 3577, 8881, 5191, 9295, 3687, 1473