Reordering for testing