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', '6507', '8903', '8863', 'S', '8077', '7313', '4731', '8515']
S, S, 6507, 8903, 8863, 8077, 7313, 4731, 8515

['O', '4065', '3793', '4123', 'i', '1017', '2023', 'Q', 'Y', 'u', '8089', '8707', '6203', '1597', 'y', '6851', 'M', '1927', '9641', 't', '4281', 'b', 'm', 'm', '5371', '4465', 'n', '6049', 't', '5251', 'w', 'K', '883', 'd', '4925', '4185']
O, i, Q, Y, u, y, M, t, b, m, m, n, t, w, K, d, 4065, 3793, 4123, 1017, 2023, 8089, 8707, 6203, 1597, 6851, 1927, 9641, 4281, 5371, 4465, 6049, 5251, 883, 4925, 4185

['9839', 'J']

J, 9839