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.

['m', 'D', 'z', 'I', 'H', 'a', 'U', '8661', '8367', 'B', '1349', 'z']
m, D, z, I, H, a, U, B, z, 8661, 8367, 1349

['5717', 'y', '2681', 'l', 'm', '3623', 'o', 'P', 'y', 'h', '2751', 'e', 'i', 'Q', '8331', '3197', 'v', '9189', 'F']
y, l, m, o, P, y, h, e, i, Q, v, F, 5717, 2681, 3623, 2751, 8331, 3197, 9189

['6081', '9391', 'n', '739', '4879', '6557', '393', '3949', 'D', '919', 'm', 'l', 'L', '3965', '3779', 'X', 'A', 'n', '2861']

n, D, m, l, L, X, A, n, 6081, 9391, 739, 4879, 6557, 393, 3949, 919, 3965, 3779, 2861