Pancake sort