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.

['6339', 's', 'y', '8869', '1179', 'L', 'M', 'H', 'G', '1989', 'm', 'x', '8581', '1917', 'Q', '5041', '6379', '4323', '417', '1251', '5483', '1927', '2315', '9079', '2089', 'N', '2731', '4553', 'I', '1791', '9797', 'k', 'r', 'D', 'x']
s, y, L, M, H, G, m, x, Q, N, I, k, r, D, x, 6339, 8869, 1179, 1989, 8581, 1917, 5041, 6379, 4323, 417, 1251, 5483, 1927, 2315, 9079, 2089, 2731, 4553, 1791, 9797

['P', '5565', '8149', '8345', 'r', 'G', '3633', '545', 'R', 'W', 'p', 'Y', '9983', '43', '8235', 'L', 'z', '7663', 'R', '817', 'e', '6287', 'b', 'Q', '4067', 'z', '1803', '5539', '9469', 'c', '275', '1391', '5899', 'o', 't', 'B', 'o', 'b', 'c']
P, r, G, R, W, p, Y, L, z, R, e, b, Q, z, c, o, t, B, o, b, c, 5565, 8149, 8345, 3633, 545, 9983, 43, 8235, 7663, 817, 6287, 4067, 1803, 5539, 9469, 275, 1391, 5899

['D', 'i', 'E', 'v', '9029', 'K', 'Z', 'Y', '8179', '5121', 'j', '9565', 'r', 'H', 'w', '1309', 'N', '3529', 'g']

D, i, E, v, K, Z, Y, j, r, H, w, N, g, 9029, 8179, 5121, 9565, 1309, 3529