Sort epochs for data comp