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: ['h', '2041', '7621', 'f', 'S', '665', 'x', 'g', 'E', '4371', '6589', 'l', 'C', '789', 'm', '2215', '1017', '3089', 'X', '8773']

SOLUTION: h, f, S, x, g, E, l, C, m, X, 2041, 7621, 665, 4371, 6589, 789, 2215, 1017, 3089, 8773

PROBLEM: ['7877', '8991', '5669', 'r', '4699', '3493', '9175', 'j', 'e', '9885', '9621', 'a', '8083', 'L', 'G', '787', '4821', '6591', '2251']

SOLUTION: r, j, e, a, L, G, 7877, 8991, 5669, 4699, 3493, 9175, 9885, 9621, 8083, 787, 4821, 6591, 2251

PROBLEM: ['4333', 'm', 'I', 'T', 'D', '3443', 'G', 'I', 'p']

SOLUTION:
m, I, T, D, G, I, p, 4333, 3443