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]: ['j', 'h', '1213', '2235', 'Z', 'z', 'y', '3173', 'U', '3409', '9049', 'g', '3287', 's', 'n', '7121', '1697', 'T', '2395', 'y', 'M']
[A]: j, h, Z, z, y, U, g, s, n, T, y, M, 1213, 2235, 3173, 3409, 9049, 3287, 7121, 1697, 2395


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


[Q]: ['g', 'o', '7227', '5935', 'C', '6797', '77', 'Q', '5815', '4941', 'M', 'B', 'h', '4447', '5267', '5059', '5655', '9621', 'M', 'K', '5007', '2967', 'Z', 'S', '3877', '3505']
[A]:
g, o, C, Q, M, B, h, M, K, Z, S, 7227, 5935, 6797, 77, 5815, 4941, 4447, 5267, 5059, 5655, 9621, 5007, 2967, 3877, 3505