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: ['p', 'o', 'D', '4813', 's', 'O', '9157', 'Q', '7613', '3561', '705', '3237', 'q', 's', '8167', '651', '7893', 'A', '3727', 'd', '6413', '2753', '8365', 'F', '4505', '8329', '5327', '7753', '2311', '9685', '5449', '4561']

SOLUTION: p, o, D, s, O, Q, q, s, A, d, F, 4813, 9157, 7613, 3561, 705, 3237, 8167, 651, 7893, 3727, 6413, 2753, 8365, 4505, 8329, 5327, 7753, 2311, 9685, 5449, 4561

PROBLEM: ['4815', '8851', 'G', 'X', 'o', '8431', '3023', '3981', 'I', 'X', 'E', '9227', '9149', 'J', 'v', '1211', '5729', 'A', 'h', 'f', 'X', '7565']

SOLUTION: G, X, o, I, X, E, J, v, A, h, f, X, 4815, 8851, 8431, 3023, 3981, 9227, 9149, 1211, 5729, 7565

PROBLEM: ['G', '1891', 'M', 'b', 'L', 'p', 'm']

SOLUTION:
G, M, b, L, p, m, 1891