Q: 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.
['T', '1039', 'H', '1649', 'P', '7513', '9379', '5833', '2293', '1579', '9011', '4099', '4549', '3215', '9823', 'T', 'p', '3943', 'Q', '2661', '7881', '4695', '4695', 'A', '4493', '6351', '877', 't', 'h']
A:
T, H, P, T, p, Q, A, t, h, 1039, 1649, 7513, 9379, 5833, 2293, 1579, 9011, 4099, 4549, 3215, 9823, 3943, 2661, 7881, 4695, 4695, 4493, 6351, 877