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: ['B', 'T', 'y', '4863', '715', 'O', 'i', 'n', '4171', '5175', 's', '4793', '9007', '9755', 'o', 'z', 'S', 'J', 'b', 'q', '5045', '7965']

SOLUTION: B, T, y, O, i, n, s, o, z, S, J, b, q, 4863, 715, 4171, 5175, 4793, 9007, 9755, 5045, 7965

PROBLEM: ['D', '2335', 'x', 'H', '7825']

SOLUTION: D, x, H, 2335, 7825

PROBLEM: ['y', 'h', 'Z', '9583', 'O', 'O', '7985', 'B', 'J', 'g', 'b', 'K', '6371', '4169', 'T', 'U', 'S', 'v', 'c', 'n']

SOLUTION:
y, h, Z, O, O, B, J, g, b, K, T, U, S, v, c, n, 9583, 7985, 6371, 4169