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: ['J', 'X', '4569', '8419', 'H', '7977', 'x', 'a', 'Q', '3953', '2337', 'u', '1317', 'i', 'j', '6933', '1053', '8345', '9831', 'a', '8859', '759', 'p', 'A', '7163']

SOLUTION: J, X, H, x, a, Q, u, i, j, a, p, A, 4569, 8419, 7977, 3953, 2337, 1317, 6933, 1053, 8345, 9831, 8859, 759, 7163

PROBLEM: ['7141', '3539', '5309', 'R', 'd', 'l', 'p', '7749']

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

PROBLEM: ['R', 'X', 'e', '5923', '4059', '6317', '9561', '5951', '9653', 'e', 'S', 'P', '6907', '4993', 'E', '1875', 'a']

SOLUTION:
R, X, e, e, S, P, E, a, 5923, 4059, 6317, 9561, 5951, 9653, 6907, 4993, 1875