Amazon Interview Question

Using python, sort through a list of process ids with different naming conventions to organize them alphabetically and in chronological order.