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: ['9779', 'z', 'p', 'W', '7659', '2619', 'a', '3109', 'i', 'R', 'a', '5287', 'j', '3473', '4907', '7261', 'h', '5289', '43', 'l', 'M', 'o', 'm']

SOLUTION: z, p, W, a, i, R, a, j, h, l, M, o, m, 9779, 7659, 2619, 3109, 5287, 3473, 4907, 7261, 5289, 43

PROBLEM: ['151', '6143', 'W', 'I', '435', 'b', '2677', 'v', 'x', '5309', '3449', '8025', 'j', 'A', '8625', '7941', 'N', '5947', 'J']

SOLUTION: W, I, b, v, x, j, A, N, J, 151, 6143, 435, 2677, 5309, 3449, 8025, 8625, 7941, 5947

PROBLEM: ['7989', '9001', '3141', 'B', '6461', 'c', 'w', '9637', '7999', 'G', '1855', '8285', 'x', 'E', 'Q', '9421', 'Q', '8415']

SOLUTION:
B, c, w, G, x, E, Q, Q, 7989, 9001, 3141, 6461, 9637, 7999, 1855, 8285, 9421, 8415