TASK DEFINITION: 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.
PROBLEM: ['6349', '4025', 'e', '2923', '2507', 'E', 'j', '3411', '8867', '1547', '9523', '8151', '6207', 'z', 'W', 'b', '3273', '5157', 'y', '7501']

SOLUTION: e, E, j, z, W, b, y, 6349, 4025, 2923, 2507, 3411, 8867, 1547, 9523, 8151, 6207, 3273, 5157, 7501

PROBLEM: ['B', 'e', 'n', 'N']

SOLUTION: B, e, n, N

PROBLEM: ['J', 'Y', '4987', 'P', '1799', '6609', 'I', '821', '7957', '7363', '365', 'm', 'D', 'r', '2857', 'P', 'I', '3641', 'R', '291', '5531', '7281', 'g', '5349', '5079', '6481', '4649', 'q', 'k', 'L', 'R', 'D', '3531', 'm', '5637']

SOLUTION:
J, Y, P, I, m, D, r, P, I, R, g, q, k, L, R, D, m, 4987, 1799, 6609, 821, 7957, 7363, 365, 2857, 3641, 291, 5531, 7281, 5349, 5079, 6481, 4649, 3531, 5637