Detailed Instructions: 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.
Problem:['e', '8797', '3057', 'j', '409', '1053', '1185', 'W', 'J', 'f', 'J', '7305', '9105', '4545', 'W', '531', 'o', '8587', '1247']
Solution:
e, j, W, J, f, J, W, o, 8797, 3057, 409, 1053, 1185, 7305, 9105, 4545, 531, 8587, 1247