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.

[Q]: ['h', '2041', '7621', 'f', 'S', '665', 'x', 'g', 'E', '4371', '6589', 'l', 'C', '789', 'm', '2215', '1017', '3089', 'X', '8773']
[A]: h, f, S, x, g, E, l, C, m, X, 2041, 7621, 665, 4371, 6589, 789, 2215, 1017, 3089, 8773


[Q]: ['U', '1869', '249', 'W', 'q', '7825', 'l', 'C', 'J', '4275', '3503', 'l', 'F', 'i', 'K', '1217', '8667', '9779', '1477', '445', '2701', 'W', '9035', 'F', '3271', '7013', '5279', '9831', 'g', '593', 'j', '9507']
[A]: U, W, q, l, C, J, l, F, i, K, W, F, g, j, 1869, 249, 7825, 4275, 3503, 1217, 8667, 9779, 1477, 445, 2701, 9035, 3271, 7013, 5279, 9831, 593, 9507


[Q]: ['6821', 'f', '7681', 'M', '417', '2805', '2967', 'o', 'Q', 'c', 'k', 'O', 'u', '481', '6221', '873', 'g', '6163', '4331', '4131', '985', 'm']
[A]:
f, M, o, Q, c, k, O, u, g, m, 6821, 7681, 417, 2805, 2967, 481, 6221, 873, 6163, 4331, 4131, 985