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.

['1867', 'O', '3383', '1417', 'D', 'T', '885', 'k', '7913', 'J', '2603', '6345', '8793', '1571', 'a', 'k', '6837', 'g', '1059', '7271', '317', 'G', 'S', '5867', '4265', 'I', 'S', 'n', 'w', '1425', 'A', '6925', '9763', '7653', '6785', 'G', '3977', '9887']
O, D, T, k, J, a, k, g, G, S, I, S, n, w, A, G, 1867, 3383, 1417, 885, 7913, 2603, 6345, 8793, 1571, 6837, 1059, 7271, 317, 5867, 4265, 1425, 6925, 9763, 7653, 6785, 3977, 9887