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: ['2397', '1403', '7057', 's', 'e', 'd', 'n', '1851', 'n', '5057']

SOLUTION: s, e, d, n, n, 2397, 1403, 7057, 1851, 5057

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: ['T', 's', 'k', '3731', 'i', 'S', '4129', 'o', '8499', '7251', '1711']

SOLUTION:
T, s, k, i, S, o, 3731, 4129, 8499, 7251, 1711