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: ['7141', '3539', '5309', 'R', 'd', 'l', 'p', '7749']

SOLUTION: R, d, l, p, 7141, 3539, 5309, 7749

PROBLEM: ['g', '6307', '3781']

SOLUTION: g, 6307, 3781

PROBLEM: ['831', 'D', 'W', '8265', 'h', 'x', '6365', 't', '9767', 'T', '4965', '4965', '7175', 'G', '1293', '3361', 'C', 'D', '5933', '9883', 'M', '8169', 'M', 'Z', 'Z', 'F', '8931', 'I', 's', '6443', '321', 'K', 'M', 's', '7109', '171', 'N', '7209', 'E', 'b']

SOLUTION:
D, W, h, x, t, T, G, C, D, M, M, Z, Z, F, I, s, K, M, s, N, E, b, 831, 8265, 6365, 9767, 4965, 4965, 7175, 1293, 3361, 5933, 9883, 8169, 8931, 6443, 321, 7109, 171, 7209