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.

['s', 'R', '5665', 'm', '2001', 'h', '2117', 'X', '453', 'S', '5799', '911', '7823', 'v', 'Z', '7171', 'l', 'p', '6701', 't', 'a', 'Y', '873', '2811', 'Y', '9533', '4317', 'Q', 'N', '2099', 'R', 'U', 'e', 'L', '9503', 'n', 'w', '7289', '1289']
s, R, m, h, X, S, v, Z, l, p, t, a, Y, Y, Q, N, R, U, e, L, n, w, 5665, 2001, 2117, 453, 5799, 911, 7823, 7171, 6701, 873, 2811, 9533, 4317, 2099, 9503, 7289, 1289

['J', '3119', 'Q', '1463', 'I', '4493', 'Z', '2583', '1629', 'o', 'N', 'r', 'C', 'S', '6551', 'F', 'G', 'X', 'M', 'n', 'l', '2151', 'B', '5627', '8701', '9207', 's', '9867', 'L', '7129', '5139', '7195', '871']
J, Q, I, Z, o, N, r, C, S, F, G, X, M, n, l, B, s, L, 3119, 1463, 4493, 2583, 1629, 6551, 2151, 5627, 8701, 9207, 9867, 7129, 5139, 7195, 871

['6961', 'r', '3445', 'x', '8749', '4793', '859', 'L', '1347']

r, x, L, 6961, 3445, 8749, 4793, 859, 1347